Skip to content

Instantly share code, notes, and snippets.

@MatsA
Created August 27, 2018 13:54
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save MatsA/75434bd9ed266381957472c0d4de38b5 to your computer and use it in GitHub Desktop.
Homebridge autostart with systemd. Full dokumentation at https://pysselilivet.blogspot.com/2017/01/homebridge-autostart-with-systemd.html
[Unit]
Description=Node.js HomeKit Server
After=syslog.target network-online.target
[Service]
Type=simple
User=pi
# Could be /usr/local/bin/homebridge
ExecStart=/usr/bin/homebridge
Restart=on-failure
RestartSec=10
KillMode=process
[Install]
WantedBy=multi-user.target
@MatsA
Copy link
Author

MatsA commented Aug 27, 2018

Service file for systemd to autostart homebridge at boot or at failure. Full documentation at https://pysselilivet.blogspot.com/2017/01/homebridge-autostart-with-systemd.html
Setup for Homebridge is found here
https://pysselilivet.blogspot.com/2016/11/homekit-z-wave-telldus-live.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment