Created
April 4, 2014 07:59
-
-
Save sauloperez/9970131 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "start passenger stand-alone" | |
# When to start the service | |
start on filesystem or runlevel [2345] | |
# When to stop the service | |
stop on runlevel [!2345] | |
# Automatically restart process if crashed | |
respawn | |
# Essentially lets upstart know the process will detach itself to the background | |
expect fork | |
env HOME=/home/ubuntu | |
# Start the process | |
script | |
exec /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.37/bin/passenger start --socket /var/redch/shared/tmp/redch.socket -d -e production --log-file /var/redch/shared/log/passenger.log --pid-file /var/redch/shared/pids/passenger.pid | |
end script | |
pre-stop exec /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.37/bin/passenger stop --pid-file /var/redch/shared/pids/passenger.pid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment