domoticz need restart at pi start-up

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
flt2
Posts: 5
Joined: Monday 25 May 2020 13:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

domoticz need restart at pi start-up

Post 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 !
User avatar
erem
Posts: 230
Joined: Tuesday 27 March 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Amsterdam/netherlands
Contact:

Re: domoticz need restart at pi start-up

Post 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.
Regards,

Rob
AllesVanZelf
Posts: 265
Joined: Monday 05 February 2018 8:42
Target OS: Raspberry Pi / ODroid
Domoticz version: 12467
Location: Netherlands, near Haarlem
Contact:

Re: domoticz need restart at pi start-up

Post 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)
Domoticz 2020.1 (12230) on Raspberry Pi 3B with Raspian Buster. Besides Domoticz, Rpi is running Pi-Hole.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest