[icinga-checkins] icinga.org: icinga-core/master: add configtest to redhat init script

git at icinga.org git at icinga.org
Mon Jul 19 08:12:53 CEST 2010


Module: icinga-core
Branch: master
Commit: dd254c81b4237fa1b7047d60c23351bdcfc2bfd1
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=dd254c81b4237fa1b7047d60c23351bdcfc2bfd1

Author: Christoph Maser <cmr at financial.com>
Date:   Tue Jun 15 18:21:57 2010 +0200

add configtest to redhat init script

---

 daemon-init-redhat.in |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/daemon-init-redhat.in b/daemon-init-redhat.in
index 26b0a78..883e41b 100644
--- a/daemon-init-redhat.in
+++ b/daemon-init-redhat.in
@@ -91,8 +91,12 @@ case "$1" in
         status $prog|| exit 0
         restart
         ;;
+   configtest)
+	$exec -v $config
+	RETVAL=$?
+	;;
     *)
-        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
+        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|configtest}"
         exit 2
 esac
 exit $?





More information about the icinga-checkins mailing list