Skip to content
Snippets Groups Projects
Commit 5797763d authored by Michiel van Baak's avatar Michiel van Baak
Browse files

use pkill instead of killall to be more portable

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@147266 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 702ab902
Branches
Tags
No related merge requests found
......@@ -184,7 +184,7 @@ run_asterisk()
sleep $SLEEPSECS
if [ $KILLALLMPG123 ]
then
killall -9 mpg123
pkill -9 mpg123
fi
done
}
......
......@@ -101,8 +101,8 @@ done
# doing the dirty work
[[ $TRY_STOP_NOW_FIRST ]] && docmd "Asking asterisk kindly to shutdown" "$ASTERISK -rx 'stop now'"
docmd "Sending asterisk processes the TERM signal" "killall -15 $PROCVICTIMS"
docmd "Sending asterisk processes KILL signal" "killall -9 $PROCVICTIMS"
docmd "Sending asterisk processes the TERM signal" "pkill -15 $PROCVICTIMS"
docmd "Sending asterisk processes KILL signal" "pkill -9 $PROCVICTIMS"
docmd "Starting safe_asterisk" "$SAFE_ASTERISK"
for i in $PROCVICTIMS
do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment