diff options
Diffstat (limited to 'net-analyzer/nagios-core/files/nagios')
-rw-r--r-- | net-analyzer/nagios-core/files/nagios | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net-analyzer/nagios-core/files/nagios b/net-analyzer/nagios-core/files/nagios index c78279d..5e54018 100644 --- a/net-analyzer/nagios-core/files/nagios +++ b/net-analyzer/nagios-core/files/nagios @@ -21,10 +21,10 @@ reload() checkconfig() { # Silent Check - /usr/nagios/bin/nagios -v /etc/nagios/nagios.cfg &>/dev/null && return 0 + /usr/sbin/nagios -v /etc/nagios/nagios.cfg &>/dev/null && return 0 # Now we know there's problem - run again and display errors - /usr/nagios/bin/nagios -v /etc/nagios/nagios.cfg + /usr/sbin/nagios -v /etc/nagios/nagios.cfg eend $? "Configuration Error. Please fix your configfile" } @@ -34,7 +34,7 @@ start() { touch /var/nagios/nagios.log /var/nagios/status.sav chown nagios:nagios /var/nagios/nagios.log /var/nagios/status.sav rm -f /var/nagios/rw/nagios.cmd - start-stop-daemon --quiet --start --startas /usr/nagios/bin/nagios \ + start-stop-daemon --quiet --start --startas /usr/sbin/nagios \ -e HOME="/var/nagios/home" --pidfile /var/nagios/nagios.lock \ -- -d /etc/nagios/nagios.cfg eend $? |