# vim: set ft=upstart ts=4 et:
description "Hockeypuck"

start on runlevel [2345]
stop on runlevel [!2345]

respawn

reload signal SIGUSR1

setuid hockeypuck
chdir /var/lib/hockeypuck

script
	if [ -f /etc/default/hockeypuck ]; then
		. /etc/default/hockeypuck
	fi
    if [ "x$initstart" = "xyes" ]; then
        exec /usr/bin/hockeypuck -config /etc/hockeypuck/hockeypuck.conf
    fi
end script

