[asterisk-commits] mvanbaak: trunk r150930 - /trunk/contrib/init.d/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Oct 18 04:02:37 CDT 2008


Author: mvanbaak
Date: Sat Oct 18 04:02:36 2008
New Revision: 150930

URL: http://svn.digium.com/view/asterisk?view=rev&rev=150930
Log:
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

Modified:
    trunk/contrib/init.d/rc.debian.asterisk
    trunk/contrib/init.d/rc.mandriva.asterisk
    trunk/contrib/init.d/rc.redhat.asterisk
    trunk/contrib/init.d/rc.suse.asterisk

Modified: trunk/contrib/init.d/rc.debian.asterisk
URL: http://svn.digium.com/view/asterisk/trunk/contrib/init.d/rc.debian.asterisk?view=diff&rev=150930&r1=150929&r2=150930
==============================================================================
--- trunk/contrib/init.d/rc.debian.asterisk (original)
+++ trunk/contrib/init.d/rc.debian.asterisk Sat Oct 18 04:02:36 2008
@@ -79,7 +79,7 @@
 	;;
   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

Modified: trunk/contrib/init.d/rc.mandriva.asterisk
URL: http://svn.digium.com/view/asterisk/trunk/contrib/init.d/rc.mandriva.asterisk?view=diff&rev=150930&r1=150929&r2=150930
==============================================================================
--- trunk/contrib/init.d/rc.mandriva.asterisk (original)
+++ trunk/contrib/init.d/rc.mandriva.asterisk Sat Oct 18 04:02:36 2008
@@ -142,7 +142,7 @@
 		;;
 	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 @@
 		;;
 	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
 		;;

Modified: trunk/contrib/init.d/rc.redhat.asterisk
URL: http://svn.digium.com/view/asterisk/trunk/contrib/init.d/rc.redhat.asterisk?view=diff&rev=150930&r1=150929&r2=150930
==============================================================================
--- trunk/contrib/init.d/rc.redhat.asterisk (original)
+++ trunk/contrib/init.d/rc.redhat.asterisk Sat Oct 18 04:02:36 2008
@@ -113,7 +113,7 @@
 }
 
 reload() {
-	$DAEMON -rx 'reload' > /dev/null 2> /dev/null
+	$DAEMON -rx 'module reload' > /dev/null 2> /dev/null
 }
 
 # See how we were called.

Modified: trunk/contrib/init.d/rc.suse.asterisk
URL: http://svn.digium.com/view/asterisk/trunk/contrib/init.d/rc.suse.asterisk?view=diff&rev=150930&r1=150929&r2=150930
==============================================================================
--- trunk/contrib/init.d/rc.suse.asterisk (original)
+++ trunk/contrib/init.d/rc.suse.asterisk Sat Oct 18 04:02:36 2008
@@ -105,7 +105,7 @@
 }
 
 reload() {
-	$DAEMON -rx 'reload' > /dev/null 2> /dev/null
+	$DAEMON -rx 'module reload' > /dev/null 2> /dev/null
 }
 
 # See how we were called.




More information about the asterisk-commits mailing list