summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-05-18 14:36:05 -0700
committerelijah <elijah@riseup.net>2013-05-18 14:36:05 -0700
commit650e5794694addb5f8843f3107af7e97c45a0d3a (patch)
tree2457e2272b9c44035a7fabc7218042e6de151d67 /dist
parent07beb2048ca78a48f16ae95baf3c0fd8e11612c4 (diff)
`nickserver status` must exit non-zero if it daemon is not running.
Diffstat (limited to 'dist')
-rwxr-xr-xdist/debian-init-script4
1 files changed, 4 insertions, 0 deletions
diff --git a/dist/debian-init-script b/dist/debian-init-script
index da54d12..af36aad 100755
--- a/dist/debian-init-script
+++ b/dist/debian-init-script
@@ -29,15 +29,19 @@ fi
case "$1" in
start)
$DAEMON $OPTIONS start
+ exit $?
;;
stop)
$DAEMON $OPTIONS stop
+ exit $?
;;
restart)
$DAEMON $OPTIONS restart
+ exit $?
;;
status)
$DAEMON $OPTIONS status
+ exit $?
;;
*)
echo "Usage: /etc/init.d/$NAME {start|stop|restart|status}"