summaryrefslogtreecommitdiff
path: root/debian/echolot.init
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2012-10-15 14:18:52 +0000
committerPeter Palfrader <peter@palfrader.org>2012-10-15 14:18:52 +0000
commitf34a0629afdb5445f9881d963a7e5fd3686d5c06 (patch)
treeee0e403488675235dd63b8d44c0f8d9d8133aaac /debian/echolot.init
parentb5b8411b6039d621842c93d7fb1175cd0a786481 (diff)
No longer ship /var/run/echolot in the package (closes: #689889)
Diffstat (limited to 'debian/echolot.init')
-rwxr-xr-xdebian/echolot.init8
1 files changed, 7 insertions, 1 deletions
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