[Pkg-voip-commits] r6227 - /asterisk/trunk/debian/asterisk.init

paravoid at alioth.debian.org paravoid at alioth.debian.org
Sun Sep 28 02:41:35 UTC 2008


Author: paravoid
Date: Sun Sep 28 02:41:34 2008
New Revision: 6227

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=6227
Log:
logger reload is called frequently, so better move (hopefully for the last time) the unset code to the asterisk_rx() function of the init script

Modified:
    asterisk/trunk/debian/asterisk.init

Modified: asterisk/trunk/debian/asterisk.init
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/asterisk.init?rev=6227&op=diff
==============================================================================
--- asterisk/trunk/debian/asterisk.init (original)
+++ asterisk/trunk/debian/asterisk.init Sun Sep 28 02:41:34 2008
@@ -137,6 +137,10 @@
 
 asterisk_rx() {
 	if ! status >/dev/null; then return 0; fi
+
+	# if $HOME is set, asterisk -rx writes a .asterisk_history there
+	unset HOME
+
 	$DAEMON -rx "$1"
 }
 
@@ -179,10 +183,6 @@
 	;;
   stop)
 	echo -n "Stopping $DESC: $NAME"
-
-	# if $HOME is set, asterisk -rx writes a .asterisk_history there
-	unset HOME
-
 	# Try gracefully.
 	# this may hang in some cases. Specifically, when the asterisk
 	# processes is stopped. No bother to worry about cleanup: 




More information about the Pkg-voip-commits mailing list