You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added the following to my init script. Should be done for systemd too:
# Added configuration check. Without the check Naemon crashes and you
# have to examin the logfile - Martin Fuerstenau
$exec -v $config > /dev/null 2>&1
retval=$?
if [ $retval -ne 0 ]
then
failure
echo
echo "CONFIG ERROR! Reload/restart aborted. Check your Naemon configuration."
return $retval
fi
When unfortunately doing a reload without checking configuration first Naemon stops. Then you have to look into the logfile..... . this takes time. If this happens when running Naemon in a cluster (I do it with CentOS) the cluster starts restarting Naemon or switching to another node.
Adding this to reload means that the daemon still runs, nothing will happen and you can fix your configuration.
Martin
The text was updated successfully, but these errors were encountered:
Hi,
I added the following to my init script. Should be done for systemd too:
When unfortunately doing a reload without checking configuration first Naemon stops. Then you have to look into the logfile..... . this takes time. If this happens when running Naemon in a cluster (I do it with CentOS) the cluster starts restarting Naemon or switching to another node.
Adding this to reload means that the daemon still runs, nothing will happen and you can fix your configuration.
Martin
The text was updated successfully, but these errors were encountered: