[Pkg-voip-commits] [resiprocate] 03/09: init script: add reload (HUP) for repro
Daniel Pocock
pocock at moszumanska.debian.org
Tue Jan 21 21:23:17 UTC 2014
This is an automated email from the git hooks/post-receive script.
pocock pushed a commit to branch master
in repository resiprocate.
commit 2187a4cacf94fcdd06aabc5577ea3243f5c4af10
Author: Daniel Pocock <daniel at pocock.com.au>
Date: Tue Jan 21 19:49:28 2014 +0100
init script: add reload (HUP) for repro
---
debian/repro.init | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/debian/repro.init b/debian/repro.init
index 2b9faf1..41ff7c6 100644
--- a/debian/repro.init
+++ b/debian/repro.init
@@ -65,7 +65,12 @@ case "$1" in
echo "$NAME is running with PID: $PID"
fi
;;
- restart|force-reload)
+ reload|force-reload)
+ if [ -f "$PIDFILE" ] ; then
+ start-stop-daemon --stop --signal HUP --quiet --pidfile $PIDFILE || rc=$?
+ fi
+ ;;
+ restart)
echo -n "Restarting $DESC: "
#start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE --exec $DAEMON
$0 stop
@@ -75,7 +80,7 @@ case "$1" in
;;
*)
N=/etc/init.d/$NAME
- echo "Usage: $N {start|stop|status|restart|force-reload}" >&2
+ echo "Usage: $N {start|stop|status|restart|reload|force-reload}" >&2
exit 1
;;
esac
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/resiprocate.git
More information about the Pkg-voip-commits
mailing list