Skip to content

Instantly share code, notes, and snippets.

@sepulworld
Created February 22, 2015 21:00
Show Gist options
  • Save sepulworld/521e097f71e77d432c39 to your computer and use it in GitHub Desktop.
Save sepulworld/521e097f71e77d432c39 to your computer and use it in GitHub Desktop.
Aptly API upstart
description "Stat HTTP server with aptly REST API"
start on filesystem or runlevel [2345]
stop on runlevel [!2345]
respawn
umask 022
chdir /
setuid root
setgid root
console log # log stdout/stderr to /var/log/upstart/
exec /usr/bin/aptly api serve -listen=:8082
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment