mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 19:28:53 +00:00
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
This commit is contained in:
@@ -184,7 +184,7 @@ run_asterisk()
|
|||||||
sleep $SLEEPSECS
|
sleep $SLEEPSECS
|
||||||
if [ $KILLALLMPG123 ]
|
if [ $KILLALLMPG123 ]
|
||||||
then
|
then
|
||||||
killall -9 mpg123
|
pkill -9 mpg123
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@@ -101,8 +101,8 @@ done
|
|||||||
|
|
||||||
# doing the dirty work
|
# doing the dirty work
|
||||||
[[ $TRY_STOP_NOW_FIRST ]] && docmd "Asking asterisk kindly to shutdown" "$ASTERISK -rx 'stop now'"
|
[[ $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 the TERM signal" "pkill -15 $PROCVICTIMS"
|
||||||
docmd "Sending asterisk processes KILL signal" "killall -9 $PROCVICTIMS"
|
docmd "Sending asterisk processes KILL signal" "pkill -9 $PROCVICTIMS"
|
||||||
docmd "Starting safe_asterisk" "$SAFE_ASTERISK"
|
docmd "Starting safe_asterisk" "$SAFE_ASTERISK"
|
||||||
for i in $PROCVICTIMS
|
for i in $PROCVICTIMS
|
||||||
do
|
do
|
||||||
|
Reference in New Issue
Block a user