Skip to content

Instantly share code, notes, and snippets.

@nrako
Created June 12, 2012 17:38
Show Gist options
  • Save nrako/2918949 to your computer and use it in GitHub Desktop.
Save nrako/2918949 to your computer and use it in GitHub Desktop.
Upstart conf scripts for fleet hub and drone
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
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