Skip to content

Commit

Permalink
Add correct upstart "restart" behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
estahn committed Jan 7, 2014
1 parent 428e60d commit 5d085f0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions templates/default/thumbor.ubuntu.upstart.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,10 @@ pre-start script
start thumbor-worker p=$p
done
end script

post-stop script
[ -r /etc/default/thumbor ] && . /etc/default/thumbor
for p in `echo ${port} | tr ',' ' '`; do
stop thumbor-worker p=$p
done
end script

0 comments on commit 5d085f0

Please sign in to comment.