X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/460b9539a7c15580e41a71bbc0f47ae776238915..fdf98378d2d8c8550661f657d30ec5186ff642f1:/examples/disorder.init.in diff --git a/examples/disorder.init.in b/examples/disorder.init.in index 5348597..bb9d8c2 100644 --- a/examples/disorder.init.in +++ b/examples/disorder.init.in @@ -1,7 +1,7 @@ #! /bin/sh # # This file is part of DisOrder. -# Copyright (C) 2004, 2005 Richard Kettlewell +# Copyright (C) 2004, 2005, 2007 Richard Kettlewell # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -22,34 +22,34 @@ set -e DAEMON=sbindir/disorderd -CLIENT=bindir/disorder +CLIENT="bindir/disorder --local" PATH="$PATH:sbindir" start() { - if ${CLIENT} >/dev/null 2>&1; then + if ${CLIENT} version >/dev/null 2>&1; then : already running else - printf "Starting disorderd... " + printf "Starting DisOrder server: disorderd" ${DAEMON} - echo done + echo . fi } stop() { - if ${CLIENT} >/dev/null 2>&1; then - printf "Stopping disorderd... " + if ${CLIENT} version >/dev/null 2>&1; then + printf "Stopping DisOrder server: disorderd" ${CLIENT} shutdown - echo done + echo . else : not running fi } reload() { - printf "Reconfiguring disorderd... " + printf "Reloading DisOrder server configuration..." ${CLIENT} reconfigure - echo done + echo done. } restart() { @@ -65,4 +65,3 @@ force-reload ) reload ;; echo "usage: $0 start|stop|restart|reload" 1>&2 exit 1 esac -# arch-tag:b75a857d0e9f723d2ae30687758ee1eb