homebridge: Unable to run Homebridge on Bootup Raspberry Pi
I followed the instruction [https://github.com/nfarina/homebridge/wiki/Running-HomeBridge-on-a-Raspberry-Pi] to set up auto start on boot.
When I type sudo /etc/init.d/homebridge start
, it just doesn’t do anything
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 22 (3 by maintainers)
Personally, I prefer to run Homebridge with forever.
Here’s my script in
/etc/init.d/homebridge
Just a quick tip, on latest Node, Homebridge is not located on /usr/local/lib but in /usr/lib. Just change the line
cmd="DEBUG=* /usr/local/bin/homebridge"
intocmd="DEBUG=* /usr/bin/homebridge"
and it works like a charmHere is my guide in setting up Homebridge on Raspberry Pi to start on boot up and restart on errors. Hope it help! https://timleland.com/setup-homebridge-to-start-on-bootup/