Skip to content

Commit

Permalink
fix god upstart script
Browse files Browse the repository at this point in the history
  • Loading branch information
zpatten committed Jan 14, 2013
1 parent 28ddcbf commit a7ff8ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/cap_recipes/tasks/god/god.upstart.erb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ exec <%=god_daemon%> -D -c <%=god_config%> -P <%=god_pid_path%> --log-level <%=g
# Run after process
post-start script
<% if god_open_socket %>
/bin/bash -c '
echo -n "Waiting on the god socket to appear..."
I=0
while [ true ]; do
Expand All @@ -44,6 +45,7 @@ post-start script
done
echo "done."
sleep 3 && sh -c "chmod 0777 /tmp/god.*.sock;true"
'
<% end %>
end script

0 comments on commit a7ff8ba

Please sign in to comment.