Created
June 12, 2012 17:38
-
-
Save nrako/2918949 to your computer and use it in GitHub Desktop.
Upstart conf scripts for fleet hub and drone
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 "Run fleet drone" | |
author "@nrako" | |
start on runlevel [2345] | |
stop on runlevel [2345] | |
respawn | |
respawn limit 5 60 | |
pre-start script | |
mkdir -p /var/log/fleet | |
mkdir -p /var/www/drone | |
chdir /var/www/drone | |
end script | |
exec /usr/local/bin/fleet drone --hub=localhost:7000 --secret=*********** >> /var/log/fleet/fleetdrone.log 2>&1 |
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 "Run fleet hub" | |
author "@nrako" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
respawn | |
respawn limit 5 60 | |
pre-start script | |
mkdir -p /var/log/fleet | |
mkdir -p /var/hub | |
chdir /var/hub | |
end script | |
exec /usr/local/bin/fleet hub --port=7000 --secret=*********** >> /var/log/fleet/fleethub.log 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment