Last active
July 13, 2019 23:15
-
-
Save tkintscher/8ee9aac086ea07660f0a7fe8e7567864 to your computer and use it in GitHub Desktop.
user systemd service for homebridge (http://github.com/nfarina/homebridge)
This file contains 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
[Unit] | |
Description=Homebridge | |
After=network-online.target deconz.service | |
[Service] | |
Type=simple | |
ExecStart=/usr/bin/homebridge | |
Restart=on-failure | |
RestartSec=10 | |
KillMode=process | |
[Install] | |
WantedBy=default.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Place the above file in:
$HOME/.config/systemd/user/homebridge.service
Then run:
Watch the log by running:
If you get an error message like
Failed to connect to bus: Permission denied
, thesystemd --user
instance is not running or the environment variables are not set properly. This happened to me whensu
-ing to the homebridge user. As a workaround try logging in directly as that user.