Homebridge Service Gist
This is a simple systemd service example for running Homebridge on Linux.
It pairs well with the environment configuration on /homebridge-gist/.
[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
Once the file is in place, reload systemd, enable the service, and start it so Homebridge comes up automatically after a reboot.