Skip to content

Instantly share code, notes, and snippets.

@idcrook
Created August 26, 2018 00:03
Show Gist options
  • Save idcrook/0765555572efac6929e7cfbf022db14d to your computer and use it in GitHub Desktop.
Save idcrook/0765555572efac6929e7cfbf022db14d to your computer and use it in GitHub Desktop.
# /etc/systemd/system/homebridge.service -*- systemd -*-
[Unit]
Description=Node.js HomeKit Server
After=syslog.target network-online.target
[Service]
Type=simple
User=homebridge
EnvironmentFile=/etc/default/homebridge
ExecStart=/usr/local/bin/homebridge $HOMEBRIDGE_OPTS
Restart=on-failure
RestartSec=10
KillMode=process
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment