diff --git a/templates/default/nagios-nrpe-server.erb b/templates/default/nagios-nrpe-server.erb index 1e70bd5..af2e51e 100644 --- a/templates/default/nagios-nrpe-server.erb +++ b/templates/default/nagios-nrpe-server.erb @@ -37,6 +37,7 @@ case "$1" in start) # Start daemon. echo -n "Starting <%= node['nrpe']['service_name'] %>: " + install -o <%= node['nrpe']['user'] %> -g <%= node['nrpe']['group'] %> -d `dirname $PidFile` <% if ['rhel', 'fedora'].include?(node['platform_family']) -%>daemon $NrpeBin -c $NrpeCfg -d<% else -%>start-stop-daemon --start --quiet --exec $NrpeBin -- -c $NrpeCfg -d<% end -%> echo ;;