Skip to content

Instantly share code, notes, and snippets.

@gozoinks
Created June 30, 2017 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gozoinks/18c93fcfe0a8c5502c06a625c42cc9a3 to your computer and use it in GitHub Desktop.
Save gozoinks/18c93fcfe0a8c5502c06a625c42cc9a3 to your computer and use it in GitHub Desktop.
upstart init script for homebridge on ubuntu
# 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