Cannot autostart domoticz on raspberry pi

Subforum for general discussions. Do not dump your questions/problems here, but try to find the subforum where it belongs!
Post Reply
funky
Posts: 4
Joined: Saturday 06 May 2017 22:38
Target OS: -
Domoticz version:
Contact:

Cannot autostart domoticz on raspberry pi

Post by funky » Saturday 06 May 2017 22:41

Hi there

I have a raspberry pi. default installation of domoticz Standard username and i followed all the instructions on
https://www.domoticz.com/wiki/Installin ... spberry_PI

however domoticz is not auto start-up at reboot. Can somebody help me? Don't know where to start and find a solution.

when i run
sudo service domoticz.sh status

domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh)
Active: inactive (dead)

it is inactive dead. When i run manually sudo service domoticz.sh start it works.

rfvdboom
Posts: 17
Joined: Tuesday 20 September 2016 8:32
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Cannot autostart domoticz on raspberry pi

Post by rfvdboom » Saturday 06 May 2017 22:55

Did you do:

sudo cp domoticz.sh /etc/init.d
sudo chmod +x /etc/init.d/domoticz.sh
sudo update-rc.d domoticz.sh defaults

funky
Posts: 4
Joined: Saturday 06 May 2017 22:38
Target OS: -
Domoticz version:
Contact:

Re: Cannot autostart domoticz on raspberry pi

Post by funky » Saturday 06 May 2017 23:23

yes i did, but did it again and now gets errors on:

sudo update-rc.d domoticz.sh defaults
insserv: warning: current start runlevel(s) (empty) of script `domoticz.sh' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0) of script `domoticz.sh' overrides LSB defaults (0 1 6

funky
Posts: 4
Joined: Saturday 06 May 2017 22:38
Target OS: -
Domoticz version:
Contact:

Re: Cannot autostart domoticz on raspberry pi

Post by funky » Sunday 07 May 2017 9:49

I found a solution. I removed the value in with updaters and add it again, now it works like a charm!

updaterc.d -f domoticz.sh remove
updaterc.d domoticz.sh defaults

manjh
Posts: 252
Joined: Saturday 27 February 2016 13:49
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: NL
Contact:

Re: Cannot autostart domoticz on raspberry pi

Post by manjh » Saturday 18 November 2017 21:00

I had the same problem after a fresh install. Domoticz will not start automatically after a reboot, but works fine on manual start.
So I did this:

Code: Select all

cd /etc/init.d
sudo update-rc.d -f domoticz.sh remove
sudo update-rc.d -f domoticz.sh defaults
This fixed it.
Remains the question: why did this problem exist?
Hans

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests