[Pkg-voip-commits] r6226 - /asterisk/trunk/debian/asterisk.init
paravoid at alioth.debian.org
paravoid at alioth.debian.org
Sat Sep 27 19:05:35 UTC 2008
Author: paravoid
Date: Sat Sep 27 19:05:35 2008
New Revision: 6226
URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=6226
Log:
Move unset inside the stop action to avoid potential nasty consequences; this leaves reload actions but I think we can ignore them for now
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=6226&op=diff
==============================================================================
--- asterisk/trunk/debian/asterisk.init (original)
+++ asterisk/trunk/debian/asterisk.init Sat Sep 27 19:05:35 2008
@@ -45,9 +45,6 @@
PIDFILE_DIR=`dirname $PIDFILE`
UMASK=007 # by default
#MAXFILES=1024 # (the system default)
-
-# if $HOME is set, asterisk -rx writes a .asterisk_history there
-unset HOME
# by default: use real-time priority
PARAMS=""
@@ -182,6 +179,10 @@
;;
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