dont use deprecated commands in the init scripts.
(closes issue #13720) Reported by: decryptus_proformatique Patches: contrib_initd_module_reload.patch uploaded by decryptus (license 555) With mods by me to fix stop commands as well git-svn-id: http://svn.digium.com/svn/asterisk/trunk@150930 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
b630ee1134
commit
fc9bce2992
4 changed files with 6 additions and 6 deletions
|
@ -79,7 +79,7 @@ case "$1" in
|
|||
;;
|
||||
reload)
|
||||
echo "Reloading $DESC configuration files."
|
||||
$DAEMON -rx 'reload' > /dev/null 2> /dev/null
|
||||
$DAEMON -rx 'module reload' > /dev/null 2> /dev/null
|
||||
;;
|
||||
restart|force-reload)
|
||||
$0 stop
|
||||
|
|
|
@ -142,7 +142,7 @@ case "$1" in
|
|||
;;
|
||||
stop)
|
||||
gprintf "Stopping asterisk: "
|
||||
asterisk -r -x "stop gracefully" >/dev/null 2>&1
|
||||
asterisk -r -x "core stop gracefully" >/dev/null 2>&1
|
||||
killall -9 mpg123 2>/dev/null
|
||||
success
|
||||
echo
|
||||
|
@ -154,13 +154,13 @@ case "$1" in
|
|||
;;
|
||||
reload)
|
||||
gprintf "Reloading asterisk: "
|
||||
asterisk -r -x "reload" >/dev/null 2>&1
|
||||
asterisk -r -x "module reload" >/dev/null 2>&1
|
||||
success
|
||||
echo
|
||||
;;
|
||||
stopnow)
|
||||
gprintf "Stopping asterisk: "
|
||||
asterisk -r -x "stop now" >/dev/null 2>&1
|
||||
asterisk -r -x "core stop now" >/dev/null 2>&1
|
||||
success
|
||||
echo
|
||||
;;
|
||||
|
|
|
@ -113,7 +113,7 @@ restart() {
|
|||
}
|
||||
|
||||
reload() {
|
||||
$DAEMON -rx 'reload' > /dev/null 2> /dev/null
|
||||
$DAEMON -rx 'module reload' > /dev/null 2> /dev/null
|
||||
}
|
||||
|
||||
# See how we were called.
|
||||
|
|
|
@ -105,7 +105,7 @@ restart() {
|
|||
}
|
||||
|
||||
reload() {
|
||||
$DAEMON -rx 'reload' > /dev/null 2> /dev/null
|
||||
$DAEMON -rx 'module reload' > /dev/null 2> /dev/null
|
||||
}
|
||||
|
||||
# See how we were called.
|
||||
|
|
Reference in a new issue