Created
June 30, 2017 23:58
-
-
Save gozoinks/18c93fcfe0a8c5502c06a625c42cc9a3 to your computer and use it in GitHub Desktop.
upstart init script for homebridge on ubuntu
This file contains hidden or 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
# homebridge | |
description "homebridge server" | |
# start after init completes (meaning avahi etc are running) | |
start on stopped rc | |
stop on shutdown | |
# keep it running when it inevitably bails | |
respawn | |
# run as the homebridge user, assuming you set up a homebridge user | |
setuid homebridge | |
# use /var/homebridge as the config directory, assuming /var/homebridge is your config directory | |
exec /usr/local/bin/homebridge -U /var/homebridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment