aboutsummaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2007-11-26 23:41:19 +0000
committerReuben Thomas <rrt@sc3d.org>2007-11-26 23:41:19 +0000
commit6abb8b99c63a1f4c91c37d57e8aab049e8b28c42 (patch)
treec72f81a4b053a5939863abcbc93a543237e8c66d /debian
parent7f9a93a1f451572fe3c723c9b8a3d9baf958bf9c (diff)
downloadplptools-6abb8b99c63a1f4c91c37d57e8aab049e8b28c42.tar.gz
plptools-6abb8b99c63a1f4c91c37d57e8aab049e8b28c42.tar.bz2
plptools-6abb8b99c63a1f4c91c37d57e8aab049e8b28c42.zip
Update to current /etc/init.d/plptools from Debian plptools package 0.15-2.
Diffstat (limited to 'debian')
-rw-r--r--debian/plptools.init7
1 files changed, 6 insertions, 1 deletions
diff --git a/debian/plptools.init b/debian/plptools.init
index 78b7ba5..d0f7549 100644
--- a/debian/plptools.init
+++ b/debian/plptools.init
@@ -46,7 +46,12 @@ case "$1" in
stop)
if test "$START_PLPNFSD" = "yes" ; then
echo -n "Stopping $DESC ($DAEMON2): "
- start-stop-daemon --stop --schedule HUP/5/TERM/1 --quiet \
+# Stop the daemon more gently
+ if test -e /var/lib/plptools/mnt/proc/exit ; then
+ echo "stop" > /var/lib/plptools/mnt/proc/exit
+ sleep 1
+ fi
+ start-stop-daemon --stop --retry HUP/5/TERM/1 --quiet \
--exec $DAEMON2 && \
echo -n "done" || echo -n "already stopped"
echo "."