Package: sympa
Version: 5.3.4-1
Severity: important
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu hardy ubuntu-patch patch

The sympa init script does not create the requirred var/run/sympa directory.

As this directory is wiped out on reboot (located on a tmpfs), the sympa daemons do not run at all as the init script use the start-stop-daemon with pidfiles in this directory.

The attched patch fixes that.

This bug has been originally reported on launchpad:
https://bugs.edge.launchpad.net/ubuntu/+source/sympa/+bug/49508


--- init	2008-01-07 12:27:48.000000000 +0100
+++ init.patch	2008-01-07 12:29:04.000000000 +0100
@@ -1,6 +1,7 @@
 #! /bin/sh
 
 PATH=/bin:/usr/bin:/sbin:/usr/sbin
+PIDDIR=/var/run/sympa
 
 DAEMON=/usr/lib/sympa/bin/sympa.pl
 PIDFILE=/var/run/sympa/sympa.pid
@@ -29,6 +30,7 @@ use_db()
     return 1
 }
 
+test -d $PIDDIR || mkdir -p $PIDDIR && chown $OWNER $PIDDIR
 test -f $DAEMON || exit 0
 test -f $ARCHIVED_DAEMON || exit 0
 test -f $BOUNCED_DAEMON || exit 0

Reply via email to