Page 1 of 1
autostart of Domoticz
Posted: Sunday 08 March 2020 13:05
by Toulon7559
When searching for info the keyword is important ....
Recently fitted some Raspberry0 with Domoticz, but now need separate start for Domoticz.

Probably somewhere a wrong setting.
Using 'search' on this forum got >6000 hits (which is not really useful) and looking at Wiki no unique solution either.
Obviously (re)start is always possible using
Probably simple, but still question:
what setting or file is required to autostart Domoticz?
a) at hard reset of power supply
b) at soft reset of reboot
Re: autostart of Domoticz
Posted: Sunday 08 March 2020 13:14
by waaren
Toulon7559 wrote: ↑Sunday 08 March 2020 13:05
what setting or file is required to autostart Domoticz?
sudo update-rc.d domoticz.sh defaults
Re: autostart of Domoticz
Posted: Sunday 08 March 2020 13:27
by Toulon7559
Thanks!
Re: autostart of Domoticz
Posted: Friday 29 December 2023 15:09
by imautohuttraeger
waaren wrote: ↑Sunday 08 March 2020 13:14
Toulon7559 wrote: ↑Sunday 08 March 2020 13:05
what setting or file is required to autostart Domoticz?
sudo update-rc.d domoticz.sh defaults
I have typed this in, but still Domoticz is not started automatically after the Pi has booted. Any idea?
Re: autostart of Domoticz
Posted: Friday 29 December 2023 15:11
by Dave21w
Does it boot on a restart OK but not on a cold start i.e initial power up ?
Re: autostart of Domoticz
Posted: Friday 29 December 2023 15:46
by imautohuttraeger
When the Pi reboots after a power outage, Domoticz will not restart. Also when the power adapter (USB) is initially plugged in Domoticz doesn't start. I always have to start it manually via terminal command:
sudo service domoticz.sh restart
Re: autostart of Domoticz
Posted: Friday 29 December 2023 23:16
by waltervl
You somehow missed the cold boot issue on the troubleshooting wiki:
https://www.domoticz.com/wiki/Troublesh ... _cold_boot
Re: autostart of Domoticz
Posted: Saturday 30 December 2023 10:13
by imautohuttraeger
Thx very much! Will try that when I will be back home.
Re: autostart of Domoticz
Posted: Saturday 06 January 2024 17:03
by imautohuttraeger
Before I have tried the cold boot workaround I have updated Domoticz from the 2023 to the recent 2024 version. Now everything is fine after my Raspberry starts, Domoticz starts, too. Can`t find the fixing of this issue in the changelog. However, I am happy now

Re: autostart of Domoticz
Posted: Friday 26 January 2024 14:07
by imautohuttraeger
imautohuttraeger wrote: ↑Saturday 06 January 2024 17:03
Before I have tried the cold boot workaround I have updated Domoticz from the 2023 to the recent 2024 version. Now everything is fine after my Raspberry starts, Domoticz starts, too. Can`t find the fixing of this issue in the changelog. However, I am happy now
Update: Sorry, I was wrong. Auto-restart of Domoticz only works when the Raspi is restarted via shh command. But if the Raspi is disconnected from power supply and boots after reconnection of the USB power supply, it is not working. So the cold boot workaround still has to be enabled.