Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nucleo
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blockchain
nucleo
Commits
4febf8a2
Commit
4febf8a2
authored
5 years ago
by
Robert Martin-Legene
Browse files
Options
Downloads
Patches
Plain Diff
Let's see if this won't help us dying nicely inside a docker
parent
620308f8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/singlestart.sh
+11
-5
11 additions, 5 deletions
bin/singlestart.sh
with
11 additions
and
5 deletions
bin/singlestart.sh
+
11
−
5
View file @
4febf8a2
...
...
@@ -13,6 +13,7 @@ trap "exit 1" ERR
trap
"reaper"
SIGINT SIGCHLD
unset
LOGDIR LOGPIPE PIDIDX
declare
-A
PIDIDX
trap
"killallprocs"
SIGTERM
function
reaper
()
{
...
...
@@ -40,6 +41,15 @@ function reaper()
max
=
30
}
function
killallprocs
()
{
if
[
${#
PIDIDX
[*]
}
-gt
0
]
then
echo
"*** Killing all remaining processes:
${
PIDIDX
[*]
}
(
${
!PIDIDX[*]
}
)."
kill
-KILL
${
!PIDIDX[*]
}
2>/dev/null
||
true
fi
}
# You can start as:
# BFAHOME=/home/bfa/bfa singlestart.sh
# singlestart.sh /home/bfa/bfa
...
...
@@ -111,8 +121,4 @@ do
sleep
1
max
=
$((
$max
-
1
))
done
if
[
${#
PIDIDX
[*]
}
-gt
0
]
then
echo
"*** Killing all remaining processes:
${
PIDIDX
[*]
}
(
${
!PIDIDX[*]
}
)."
kill
-KILL
${
!PIDIDX[*]
}
2>/dev/null
||
true
fi
killallprocs
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment