mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-21 20:56:39 +00:00
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: https://origsvn.digium.com/svn/asterisk/trunk@150930 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -79,7 +79,7 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
reload)
|
reload)
|
||||||
echo "Reloading $DESC configuration files."
|
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)
|
restart|force-reload)
|
||||||
$0 stop
|
$0 stop
|
||||||
|
@@ -142,7 +142,7 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
gprintf "Stopping asterisk: "
|
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
|
killall -9 mpg123 2>/dev/null
|
||||||
success
|
success
|
||||||
echo
|
echo
|
||||||
@@ -154,13 +154,13 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
reload)
|
reload)
|
||||||
gprintf "Reloading asterisk: "
|
gprintf "Reloading asterisk: "
|
||||||
asterisk -r -x "reload" >/dev/null 2>&1
|
asterisk -r -x "module reload" >/dev/null 2>&1
|
||||||
success
|
success
|
||||||
echo
|
echo
|
||||||
;;
|
;;
|
||||||
stopnow)
|
stopnow)
|
||||||
gprintf "Stopping asterisk: "
|
gprintf "Stopping asterisk: "
|
||||||
asterisk -r -x "stop now" >/dev/null 2>&1
|
asterisk -r -x "core stop now" >/dev/null 2>&1
|
||||||
success
|
success
|
||||||
echo
|
echo
|
||||||
;;
|
;;
|
||||||
|
@@ -113,7 +113,7 @@ restart() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
reload() {
|
reload() {
|
||||||
$DAEMON -rx 'reload' > /dev/null 2> /dev/null
|
$DAEMON -rx 'module reload' > /dev/null 2> /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
# See how we were called.
|
# See how we were called.
|
||||||
|
@@ -105,7 +105,7 @@ restart() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
reload() {
|
reload() {
|
||||||
$DAEMON -rx 'reload' > /dev/null 2> /dev/null
|
$DAEMON -rx 'module reload' > /dev/null 2> /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
# See how we were called.
|
# See how we were called.
|
||||||
|
Reference in New Issue
Block a user