[asterisk-commits] mvanbaak: trunk r147266 - /trunk/contrib/scripts/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Oct 7 13:00:48 CDT 2008
Author: mvanbaak
Date: Tue Oct 7 13:00:48 2008
New Revision: 147266
URL: http://svn.digium.com/view/asterisk?view=rev&rev=147266
Log:
use pkill instead of killall to be more portable
Modified:
trunk/contrib/scripts/safe_asterisk
trunk/contrib/scripts/safe_asterisk_restart
Modified: trunk/contrib/scripts/safe_asterisk
URL: http://svn.digium.com/view/asterisk/trunk/contrib/scripts/safe_asterisk?view=diff&rev=147266&r1=147265&r2=147266
==============================================================================
--- trunk/contrib/scripts/safe_asterisk (original)
+++ trunk/contrib/scripts/safe_asterisk Tue Oct 7 13:00:48 2008
@@ -184,7 +184,7 @@
sleep $SLEEPSECS
if [ $KILLALLMPG123 ]
then
- killall -9 mpg123
+ pkill -9 mpg123
fi
done
}
Modified: trunk/contrib/scripts/safe_asterisk_restart
URL: http://svn.digium.com/view/asterisk/trunk/contrib/scripts/safe_asterisk_restart?view=diff&rev=147266&r1=147265&r2=147266
==============================================================================
--- trunk/contrib/scripts/safe_asterisk_restart (original)
+++ trunk/contrib/scripts/safe_asterisk_restart Tue Oct 7 13:00:48 2008
@@ -101,8 +101,8 @@
# 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
More information about the asterisk-commits
mailing list