From f34a0629afdb5445f9881d963a7e5fd3686d5c06 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 15 Oct 2012 14:18:52 +0000 Subject: No longer ship /var/run/echolot in the package (closes: #689889) --- debian/echolot.init | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'debian/echolot.init') diff --git a/debian/echolot.init b/debian/echolot.init index 0ff2897..3247e18 100755 --- a/debian/echolot.init +++ b/debian/echolot.init @@ -25,7 +25,8 @@ VERBOSE=0 # You probably don't want to mess with stuff below this line ################################################################ -PIDFILE=/var/run/echolot/pingd.pid +RUNDIR=/var/run/echolot +PIDFILE="$RUNDIR/pingd.pid" CHECKULIMIT=1 CHECKUID=1 USER=echolot @@ -41,6 +42,11 @@ export PATH # Reads config file (will override defaults above) [ -r /etc/default/echolot ] && . /etc/default/echolot +if [ ! -d ${RUNDIR} ]; then + mkdir "$RUNDIR" + chown root:"$GROUP" "$RUNDIR" + chmod 02770 "$RUNDIR" +fi wait_for_deaddaemon () { PID=$1 -- cgit v1.2.3