Page 1 of 1

domoticz need restart at pi start-up

Posted: Monday 22 June 2020 9:27
by flt2
Hello,

not sure where to post this question, please advise !

I've installed a Pi with raspbian and domoticz. I don't use it for anything else.

Domoticz is supposed to launch at start up, and the status is nice :
pi@raspberrypi:~ $ sudo /etc/init.d/domoticz.sh status -l
* domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated)
Active: active (exited) since Thu 2020-06-04 15:01:43 CEST; 2 weeks 3 days ago
Docs: man:systemd-sysv-generator(8)
Process: 441 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)

juin 04 15:01:42 raspberrypi systemd[1]: Starting LSB: Home Automation System...
juin 04 15:01:43 raspberrypi domoticz.sh[441]: 2020-06-04 15:01:43.892 Status: Domoticz V2020.2 (c)2012-2020 GizMoCuz
juin 04 15:01:43 raspberrypi domoticz.sh[441]: 2020-06-04 15:01:43.892 Status: Build Hash: b63341bc0, Date: 2020-04-26 13:47:55
juin 04 15:01:43 raspberrypi domoticz.sh[441]: 2020-06-04 15:01:43.892 Status: Startup Path: /home/pi/domoticz/
juin 04 15:01:43 raspberrypi domoticz.sh[441]: domoticz: Domoticz is starting up....
juin 04 15:01:43 raspberrypi domoticz[462]: Domoticz is starting up....
juin 04 15:01:43 raspberrypi domoticz[778]: Domoticz running...
juin 04 15:01:43 raspberrypi systemd[1]: Started LSB: Home Automation System.
nevertheless, I can't connect to domoticz web page, unless I do a
sudo /etc/init.d/domoticz.sh restart
Were could this come from ?

BTW, startX also systematically fails to run.
(I tried with a screen pluged in the HDMI port, but I can only get command line)

Thanks in advance for advice !

Re: domoticz need restart at pi start-up

Posted: Tuesday 23 June 2020 20:29
by erem
This seems to be a known error, caused by the raspberry not having the correct time when domoticz starts.
The simple solution is to put a cron job entry like this:

Code: Select all

@reboot sleep 60 ; sudo /etc/init.d/domoticz.sh restart
this restarts domoticz 60 seconds after boot.

Re: domoticz need restart at pi start-up

Posted: Thursday 25 June 2020 21:12
by AllesVanZelf
flt2 wrote: Monday 22 June 2020 9:27 Hello,

not sure where to post this question, please advise !

I've installed a Pi with raspbian and domoticz. I don't use it for anything else.

Domoticz is supposed to launch at start up, and the status is nice :
pi@raspberrypi:~ $ sudo /etc/init.d/domoticz.sh status -l
* domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated)
Active: active (exited) since Thu 2020-06-04 15:01:43 CEST; 2 weeks 3 days ago
Docs: man:systemd-sysv-generator(8)
Process: 441 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)
nevertheless, I can't connect to domoticz web page, unless I do a
sudo /etc/init.d/domoticz.sh restart
Just to make this clear for you. Domoticz is not running.
Active: active (exited)
means it is exited. ;) If domoticz is running, the status would be:
Active: active (running)