3380b57
From 0a988e01a0b2e1859990a26198d6c8adee001cca Mon Sep 17 00:00:00 2001
3380b57
From: Peter Lemenkov <lemenkov@gmail.com>
3380b57
Date: Fri, 18 Jun 2010 13:45:05 +0400
3380b57
Subject: [PATCH 1/6] Add reload target to the init-script
3380b57
3380b57
---
3380b57
 init-script.in |    7 ++++++-
3380b57
 1 files changed, 6 insertions(+), 1 deletions(-)
3380b57
3380b57
diff --git a/init-script.in b/init-script.in
3380b57
index 07b17c7..0bd7629 100644
3380b57
--- a/init-script.in
3380b57
+++ b/init-script.in
3380b57
@@ -51,11 +51,16 @@ case "$1" in
469dd71
 	$0 stop
469dd71
 	$0 start
469dd71
 	;;
469dd71
+  reload)
469dd71
+	echo -n "Reloading nrpe"
469dd71
+	killproc nrpe -HUP
469dd71
+	echo
469dd71
+	;;
469dd71
   status)
469dd71
 	status nrpe
469dd71
 	;;
3380b57
   *)
3380b57
-	echo "Usage: nrpe {start|stop|restart|status}"
3380b57
+	echo "Usage: nrpe {start|stop|restart|reload|status}"
3380b57
 	exit 1
3380b57
 esac
3380b57
 
3380b57
-- 
3380b57
1.6.6.1
3380b57