Package: chillispot
Version: 1.0-10
Severity: normal
Tags: patch

We had problems that after restarting chillispot 15-20x the ipc queue run over 
and no process new chilli process could be started. When we run it per hand it 
worked without any problems. The reason seemed to be the init script. As fix 
we corrected the pidfile (default /var/run/chilli.pid and not 
/var/run/chillispot.pid) and the process name. Patch is attached as -p1 patch 
against the source package. Maybe you add some extra variables to make it 
cleaner.


--- System information. ---
Architecture: amd64
Kernel:       Linux 2.6.29-2-amd64

Debian Release: squeeze/sid
  500 unstable        ftp.debian.org


diff --git a/debian/chillispot.init b/debian/chillispot.init
index 56ac46e..d095f25 100644
--- a/debian/chillispot.init
+++ b/debian/chillispot.init
@@ -21,7 +21,7 @@ DESC="Chillispot captive portal"
 NAME=chillispot
 DAEMON=/usr/sbin/chilli
 DAEMON_ARGS="--conf /etc/chilli.conf"
-PIDFILE=/var/run/$NAME.pid
+PIDFILE=/var/run/chilli.pid
 SCRIPTNAME=/etc/init.d/$NAME
 
 # Defaults - don't touch, edit /etc/default/chillispot
@@ -74,7 +74,7 @@ do_stop()
 	#   1 if daemon was already stopped
 	#   2 if daemon could not be stopped
 	#   other if a failure occurred
-	start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
+	start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name chilli
 	RETVAL="$?"
 	[ "$RETVAL" = 2 ] && return 2
 	# Wait for children to finish too if this is a daemon that forks
@@ -99,7 +99,7 @@ do_reload() {
 	# restarting (for example, when it is sent a SIGHUP),
 	# then implement that here.
 	#
-	start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME
+	start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name chilli
 	return 0
 }
 

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to