Skip to content
Snippets Groups Projects
Commit f66f599b authored by sveseli's avatar sveseli
Browse files

resolve issue with graceful shutdown not being enough; we now kill service...

resolve issue with graceful shutdown not being enough; we now kill service with a KILL signal after graceful shutdown is attempted
parent f638b9f1
No related branches found
No related tags found
No related merge requests found
......@@ -91,6 +91,10 @@ stop() {
PID=`cat $DM_PID_FILE`
kill $PID
RETVAL=$?
sleep 1
# Make sure we kill the process always, regardless of
# what happened with first kill
kill -KILL $PID > /dev/null 2>&1
[ $RETVAL -eq 0 ] && rm -f $DM_PID_FILE && success $"$DM_DAEMON_NAME shutdown" || failure $"$DM_DAEMON_NAME shutdown"
echo
return $RETVAL
......
......@@ -91,6 +91,10 @@ stop() {
PID=`cat $DM_PID_FILE`
kill $PID
RETVAL=$?
sleep 1
# Make sure we kill the process always, regardless of
# what happened with first kill
kill -KILL $PID > /dev/null 2>&1
[ $RETVAL -eq 0 ] && rm -f $DM_PID_FILE && success $"$DM_DAEMON_NAME shutdown" || failure $"$DM_DAEMON_NAME shutdown"
echo
return $RETVAL
......@@ -98,6 +102,7 @@ stop() {
restart() {
stop
sleep 1
start
}
......
......@@ -91,6 +91,10 @@ stop() {
PID=`cat $DM_PID_FILE`
kill $PID
RETVAL=$?
sleep 1
# Make sure we kill the process always, regardless of
# what happened with first kill
kill -KILL $PID > /dev/null 2>&1
[ $RETVAL -eq 0 ] && rm -f $DM_PID_FILE && success $"$DM_DAEMON_NAME shutdown" || failure $"$DM_DAEMON_NAME shutdown"
echo
return $RETVAL
......@@ -98,6 +102,7 @@ stop() {
restart() {
stop
sleep 1
start
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment