Skip to content

Instantly share code, notes, and snippets.

@foursixnine
Forked from sepulworld/aptly-api.conf
Last active September 5, 2016 21:50
Show Gist options
  • Save foursixnine/a6d24d9e9e106c86b13eeeb0f3d2b1aa to your computer and use it in GitHub Desktop.
Save foursixnine/a6d24d9e9e106c86b13eeeb0f3d2b1aa 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 smartmatic
setgid smartmatic
console log # log stdout/stderr to /var/log/upstart/
#our jenkins server is running on port 8080 in algol-a
exec /usr/bin/aptly api serve -listen=:9090 -no-lock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment