Skip to content

Commit

Permalink
fix restart in upstart scripts due to upstart bug with pre-stop
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Conway committed Jan 26, 2012
1 parent 7a0c907 commit 4563cb0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ post-start script
while ! curl -s 'http://localhost:<%= rubber_env.elasticsearch_http_port %>/_status' > /dev/null 2>&1; do sleep 1 ; done
end script

pre-stop script
rm <%= rubber_env.elasticsearch_pid_file %>
post-stop script
rm -f <%= rubber_env.elasticsearch_pid_file %>
end script
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ post-start script
status graylog-server | head -n1 | awk '{print $NF}' > <%= rubber_env.graylog_server_pid_file %>
end script

pre-stop script
rm <%= rubber_env.graylog_server_pid_file %>
post-stop script
rm -f <%= rubber_env.graylog_server_pid_file %>
end script
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ post-start script
status graylog-web | head -n1 | awk '{print $NF}' > <%= rubber_env.graylog_web_pid_file %>
end script

pre-stop script
rm <%= rubber_env.graylog_web_pid_file %>
post-stop script
rm -f <%= rubber_env.graylog_web_pid_file %>
end script

0 comments on commit 4563cb0

Please sign in to comment.