[Pkg-voip-commits] r2697 - op-panel/trunk/debian

Alejandro Rios P. alerios-guest at alioth.debian.org
Tue Nov 14 06:55:39 CET 2006


Author: alerios-guest
Date: 2006-11-14 06:55:39 +0100 (Tue, 14 Nov 2006)
New Revision: 2697

Modified:
   op-panel/trunk/debian/dirs
   op-panel/trunk/debian/op-panel.init
   op-panel/trunk/debian/postrm
Log:
* Also affected by the change of user from op-panel to asterisk.


Modified: op-panel/trunk/debian/dirs
===================================================================
--- op-panel/trunk/debian/dirs	2006-11-14 05:53:55 UTC (rev 2696)
+++ op-panel/trunk/debian/dirs	2006-11-14 05:55:39 UTC (rev 2697)
@@ -1,3 +1,4 @@
+var/lib/op-panel/
 var/log/op-panel/
 var/run/op-panel/
 usr/share/op-panel/flash/

Modified: op-panel/trunk/debian/op-panel.init
===================================================================
--- op-panel/trunk/debian/op-panel.init	2006-11-14 05:53:55 UTC (rev 2696)
+++ op-panel/trunk/debian/op-panel.init	2006-11-14 05:55:39 UTC (rev 2697)
@@ -25,7 +25,6 @@
 DAEMON=/usr/sbin/op_server
 NAME=op-panel
 DESC="Flash Operator Panel"
-GROUP=asterisk
 
 PIDFILE=/var/run/$NAME/$NAME.pid
 SCRIPTNAME=/etc/init.d/$NAME
@@ -38,20 +37,17 @@
 # Gracefully exit if the package has been removed.
 test -x $DAEMON || exit 0
 
-# Read config file if it is present.
-#if [ -r /etc/default/$NAME ]
-#then
-#	. /etc/default/$NAME
-#fi
 
 case "$1" in
   start)
 	echo -n "Starting $DESC: $NAME"
-	start-stop-daemon --chuid $NAME:$GROUP --start --oknodo --pidfile $PIDFILE --startas $DAEMON -- $OPTIONS
+	sleep 1
+	start-stop-daemon --group asterisk --start --oknodo --pidfile $PIDFILE --startas $DAEMON -- $OPTIONS
 	echo "."
 	;;
   stop)
 	echo -n "Stopping $DESC: $NAME"
+	sleep 1
 	start-stop-daemon --stop --oknodo --pidfile $PIDFILE
 	echo "."
 	;;
@@ -63,8 +59,8 @@
 	#
 	echo -n "Restarting $DESC: $NAME"
 	start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE
-	sleep 1
-	start-stop-daemon --chuid $NAME:$GROUP --start --quiet --pidfile $PIDFILE --startas $DAEMON -- $OPTIONS
+	sleep 2
+	start-stop-daemon --group asterisk --start --quiet --pidfile $PIDFILE --startas $DAEMON -- $OPTIONS
 	echo "."
 	;;
   *)

Modified: op-panel/trunk/debian/postrm
===================================================================
--- op-panel/trunk/debian/postrm	2006-11-14 05:53:55 UTC (rev 2696)
+++ op-panel/trunk/debian/postrm	2006-11-14 05:55:39 UTC (rev 2697)
@@ -12,7 +12,6 @@
 # for details, see http://www.debian.org/doc/debian-policy/ or
 # the debian-policy package
 
-USER=op-panel
 
 case "$1" in
 	purge)
@@ -21,7 +20,6 @@
 		rm -fr /var/log/op-panel/
 		rm -fr /var/run/op-panel.pid
 	
- 		deluser $USER
 	;;
 	
         remove|abort-install|disappear|upgrade)




More information about the Pkg-voip-commits mailing list