From b2c7c3fbe6748b9870cdb1b4a686b393f6904c52 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 28 Jul 2005 10:15:18 +0000 Subject: [PATCH] - alias configtest to checkconfig - cosmetics Changed files: nagios.init -> 1.15 --- nagios.init | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nagios.init b/nagios.init index 26b3442..891ea6b 100644 --- a/nagios.init +++ b/nagios.init @@ -26,11 +26,11 @@ else fi checkconfig() { - res=`/usr/sbin/nagios -v /etc/nagios/nagios.cfg` + /usr/sbin/nagios -v /etc/nagios/nagios.cfg > /dev/null rc=$? if [ $rc -gt 0 ]; then fail - nls 'The configuration is broken. See details with %s "checkconfig"' $0 + nls 'The configuration is broken. See details with %s "checkconfig"' /etc/rc.d/init.d/nagios fi return $rc } @@ -69,7 +69,7 @@ status) status nagios exit $? ;; -checkconfig|check) +checkconfig|check|configtest) /usr/sbin/nagios -v /etc/nagios/nagios.cfg exit $? ;; -- 2.44.0