Package: popa3d
Version: all

Init scripts don't create a .pid file when running in standalone mode.  Pid 
files are essential for some daemon supervisors such as monit.

Suggested action: that the init script creates and manages a .pid file when 
running in standalone mode.

--- popa3d.orig 2005-08-27 15:26:58.000000000 +0100
+++ popa3d      2005-08-27 15:18:00.000000000 +0100
@@ -6,6 +6,7 @@
 NAME=popa3d
 DEFAULT=/etc/default/popa3d
 ARGS="-D"
+PIDFILE=/var/run/popa3d.pid

 #. /etc/default/popa3d

@@ -30,10 +31,12 @@
   echo -n "Starting pop daemon: "
   start-stop-daemon --start --name popa3d --exec $DAEMON -- $ARGS
   echo ${NAME}.
+  echo `pidof popa3d` > $PIDFILE
   ;;
 stop)
   echo -n "Stopping pop daemon: "
   POPPID=`pidof popa3d` && kill -9 $POPPID
+  rm $PIDFILE
   echo ${NAME}.
   ;;

@@ -44,6 +47,7 @@
   echo -n "Starting pop daemon: "
   start-stop-daemon --start --name popa3d --exec $DAEMON -- $ARGS
   echo ${NAME}.
+  echo `pidof popa3d` > $PIDFILE
   ;;

 *)

-- 
Matt Collier
Systems Engineer
Switch Media Ltd 
  
T: 0151 236 9111 ext 223 
F: 0151 236 9911 
E: [EMAIL PROTECTED] 


-------------------------------------------------------------- 
17-19 Fenwick Street, Liverpool L2 7LS 
Company registered in England & Wales No. 3977089 
-------------------------------------------------------------- 
This communication contains information which is confidential. 
It is for the exclusive use of the intended recipient. If you 
are not the intended recipient, please note that any 
distribution, copying or use of this communication or the 
information in it is prohibited. If you have received this 
communication in error, please notify us by email or by 
telephone on 0151 236 9111 and then delete the email and any 
copies of it. 
-------------------------------------------------------------- 

Attachment: pgpqOIHP2VKHB.pgp
Description: PGP signature

Reply via email to