# hockeypuck - ubuntu upstart file

description "Hockeypuck OpenPGP Keyserver"
author "Casey Marshall <cmars@cmarstech.com>"

start on (runlevel [2345] and started postgresql)
stop on (runlevel [016] or stopping postgresql)

# Automatically restart process if crashed
respawn

setuid hockeypuck

# Start the process
exec /usr/bin/hockeypuck run --config /etc/hockeypuck/hockeypuck.conf
