diff -Nru /tmp/gAswGMH8L8/pymsnt-0.11.2/debian/changelog /tmp/PWoWLRCVK8/pymsnt-0.11.2/debian/changelog --- /tmp/gAswGMH8L8/pymsnt-0.11.2/debian/changelog 2007-04-06 19:34:02.000000000 +0200 +++ /tmp/PWoWLRCVK8/pymsnt-0.11.2/debian/changelog 2007-04-06 19:34:03.000000000 +0200 @@ -1,3 +1,10 @@ +pymsnt (0.11.2-1ubuntu2) feisty; urgency=low + + * debian/init.d: create /var/run/ directory if necessary and set proper + permissions. (Closes LP: #103535) + + -- Lionel Porcheron Fri, 06 Apr 2007 19:15:28 +0200 + pymsnt (0.11.2-1ubuntu1) feisty; urgency=low * debian/patches/130_twisted_2.5.patch: Add patch to work with Twisted 2.5. diff -Nru /tmp/gAswGMH8L8/pymsnt-0.11.2/debian/init.d /tmp/PWoWLRCVK8/pymsnt-0.11.2/debian/init.d --- /tmp/gAswGMH8L8/pymsnt-0.11.2/debian/init.d 2007-04-06 19:34:02.000000000 +0200 +++ /tmp/PWoWLRCVK8/pymsnt-0.11.2/debian/init.d 2007-04-06 19:34:03.000000000 +0200 @@ -7,6 +7,7 @@ PIDFILE=/var/run/pymsnt/$NAME.pid USER=pymsnt +GROUP=pymsnt SSD_OPTS="--pidfile=$PIDFILE --name=python --user=$USER" @@ -15,6 +16,11 @@ test -f $DAEMON || exit 0 +if [ ! -e `dirname $PIDFILE` ];then + mkdir `dirname $PIDFILE` + chown $USER:$GROUP `dirname $PIDFILE` +fi + case "$1" in start) echo -n "Starting $DESC: "