Skip to content

Commit

Permalink
create pid directory in init script
Browse files Browse the repository at this point in the history
  • Loading branch information
5c077yP committed Aug 5, 2015
1 parent 0a121c2 commit ddc4540
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/default/nagios-nrpe-server.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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
;;
Expand Down

0 comments on commit ddc4540

Please sign in to comment.