You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.
Created by mfriedrich on 2011-07-23 18:25:57 +00:00
Assignee: mfriedrich
Status: Resolved (closed on 2011-07-24 09:41:57 +00:00)
Target Version: 1.5
Last Update: 2011-07-24 09:41:56 +00:00 (in Redmine)
like waiting 30 seconds (or the retries and then kill -9 the daemon, making it possible to stop dead daemons.
# Expects $1 to be pid to wait for
kill_then_wait_30_seconds_before_minus_nine()
{
pid=$1
kill $pid
COUNT=30
while true; do
kill -0 $pid 2>/dev/null
if [ $? != 0 ]; then
break
fi
if [ $COUNT -lt 1 ]; then
echo "Process not stopped after 30 seconds - sending kill -9"
kill -9 $pid
break
fi
COUNT=`expr $COUNT - 1`
sleep 1
done
}
This issue has been migrated from Redmine: https://dev.icinga.com/issues/1747
Created by mfriedrich on 2011-07-23 18:25:57 +00:00
Assignee: mfriedrich
Status: Resolved (closed on 2011-07-24 09:41:57 +00:00)
Target Version: 1.5
Last Update: 2011-07-24 09:41:56 +00:00 (in Redmine)
like waiting 30 seconds (or the retries and then kill -9 the daemon, making it possible to stop dead daemons.
example from opsview core.
Changesets
2011-07-23 21:18:20 +00:00 by mfriedrich 67645ff
The text was updated successfully, but these errors were encountered: