diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-03-16 23:18:23 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-03-16 23:29:59 +0100 |
commit | 4ad8d4d3c0e46fa50fe421c6957db1ea4b048b62 (patch) | |
tree | 04cbfbd1e6f7a31c5aa60740b4ce956b39470ec9 /contrib/respawn-only.sh | |
parent | e45fc8635926f70b0e19d5214f1f8b8fd06068aa (diff) |
sysmobts: Name the screen and use '-X quit' to shut it down
Use "kill -2 0" for the PCU as SIGTERM is not handled yet. With
the current set of code the stop function will stop both the PCU
and the BTS.
Diffstat (limited to 'contrib/respawn-only.sh')
-rwxr-xr-x | contrib/respawn-only.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/respawn-only.sh b/contrib/respawn-only.sh index 66aaac79..478abd66 100755 --- a/contrib/respawn-only.sh +++ b/contrib/respawn-only.sh @@ -3,6 +3,7 @@ PID=$$ echo "-1000" > /proc/$PID/oom_score_adj +trap "{ kill 0; kill -2 0; }" EXIT while [ -f $1 ]; do (echo "0" > /proc/self/oom_score_adj && exec nice -n -20 $*) & |