Fixes #476538
Signed-off-by: Y Giridhar Appaji Nag <[email protected]>
---
debian/init.d | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/debian/init.d b/debian/init.d
index 9552841..a14867b 100644
--- a/debian/init.d
+++ b/debian/init.d
@@ -99,6 +99,13 @@ pdnsd_stop()
stop_resolvconf
}
+pdnsd_status()
+{
+ if status_of_proc $DAEMON $NAME; then
+ /usr/sbin/pdnsd-ctl status
+ fi
+}
+
case "$1" in
start)
gen_cache
@@ -107,12 +114,15 @@ case "$1" in
stop)
pdnsd_stop
;;
+ status)
+ pdnsd_status
+ ;;
restart|force-reload)
pdnsd_stop
pdnsd_start
;;
*)
- echo "Usage: /etc/init.d/$NAME {start|stop|restart|force-reload}" >&2
+ echo "Usage: /etc/init.d/$NAME
{start|stop|status|restart|force-reload}" >&2
exit 1
;;
esac
--
1.6.2.4
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]