Created
February 22, 2015 21:00
-
-
Save sepulworld/521e097f71e77d432c39 to your computer and use it in GitHub Desktop.
Aptly API upstart
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 "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