Created attachment 160191 [details]
Set default value "NO" for nagios_enable in rc script
Comments at the beginning of the port's rc script say that nagios_enable is set to NO by default. This patch makes it so.
The rc script does not set a value for nagios_enable at all, so if the variable is not set in the system rc.conf, the rc system emits the following WARNING message during startup or shutdown if the port is installed but not configured:
/usr/local/etc/rc.d/nagios: WARNING: $nagios_enable is not set properly - see rc.conf(5).
This patch modifies the port's rc script to set nagios_enable to "NO" if the variable is empty or not set in rc.conf.
A commit references this bug:
Date: Mon Aug 31 10:06:08 UTC 2015
New revision: 395658
Set default value "NO" for nagios_enable in rc script.
Submitted by: John Marshall
Sponsored by: Absolight