From 9ae87cc0feb672c88f7ae8b2092acd80f4094e2e Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Mon, 1 Mar 2010 19:19:25 +0000 Subject: Add 'status' handling to init.d script. --- debian/changelog | 1 + debian/sitesummary-client.init | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index ac08cfa..95b9054 100644 --- a/debian/changelog +++ b/debian/changelog @@ -8,6 +8,7 @@ sitesummary (0.0.61) UNRELEASED; urgency=low http://exchange.nagios.org/directory/Plugins/Printing/check_cups_queue/details * Make client recommend iproute, to make sure the ip command is available when the cdpr collecting code needs it. + * Add 'status' handling to init.d script. -- Petter Reinholdtsen Fri, 19 Feb 2010 10:57:11 +0100 diff --git a/debian/sitesummary-client.init b/debian/sitesummary-client.init index 8f2bf7e..0d2293c 100644 --- a/debian/sitesummary-client.init +++ b/debian/sitesummary-client.init @@ -30,8 +30,11 @@ case "$1" in ;; stop|reload|force-reload|restart) ;; + status) + exit 3 # Not really a service, so it is not running + ;; *) - echo "Usage: /etc/init.d/atd {start|stop|restart|force-reload|reload}" + echo "Usage: /etc/init.d/atd {start|stop|restart|force-reload|reload|status}" exit 1 ;; esac -- cgit v1.2.3