Package: aolserver4
Severity: wishlist
Tags: patch

Hi,

As you may know Ubuntu has /var/run mounted as a tmpfs. It would
be desirable to be able to do this in Debian as well. The following
patch from Luca Falavigna allows this to happen. Please consider
applying it.

Thanks,

James

diff -pruN 4.5.0-13/debian/aolserver4.postinst
4.5.0-13ubuntu1/debian/aolserver4.postinst
--- 4.5.0-13/debian/aolserver4.postinst 2007-11-12 23:09:48.000000000 +0000
+++ 4.5.0-13ubuntu1/debian/aolserver4.postinst  2007-11-12 23:09:04.000000000 
+0000
@@ -30,6 +30,10 @@ CONF_NEW="$CONF.$NEW_SUFFIX"
 INIT="/etc/init.d/$PACKAGE"
 INIT_NEW="$INIT.$NEW_SUFFIX"
 
+if [ ! -d ${RUNDIR} ]; then
+       mkdir -p -m 0755 ${RUNDIR}
+fi
+
 replace_file () {
     file=$1
     if [ ! -f $file ] ; then
diff -pruN 4.5.0-13/debian/examples/aolconf-1.01/aolserver4-init 
4.5.0-13ubuntu1/debian/examples/aolconf-1.01/aolserver4-init
--- 4.5.0-13/debian/examples/aolconf-1.01/aolserver4-init       2007-11-12 
23:09:48.000000000 +0000
+++ 4.5.0-13ubuntu1/debian/examples/aolconf-1.01/aolserver4-init        
2007-11-12 23:09:04.000000000 +0000
@@ -7,12 +7,17 @@ NAME=aolserver4
 PATH=/bin:/usr/bin:/sbin:/usr/sbin
 DAEMON=/usr/lib/aolserver4/run
 AOLSERVER=/usr/sbin/aolserver4-nsd
-PIDFILE=/var/run/aolserver4/$NAME.pid
+PID_DIR=/var/run/aolserver4
+PIDFILE=$PID_DIR/$NAME.pid
 
 trap "" 1
 
 [ -f $AOLSERVER ] || exit 0
 
+if [ ! -d ${PID_DIR} ]; then
+       mkdir -p -m 0755 ${PID_DIR}
+fi
+
 start()
 {
     echo -n "Starting web server: $NAME"




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to