lancement au boot de domoticz ne marche pas sur mon raspberry
Publié : 26 juil. 2019, 17:20
bonjour,
j'ai installé domoticz sur un raspberry avec la derniere version de raspbian.
pour lancer domoticz au boot j'ai suivi la procédure suivante :
sudo cp domoticz/domoticz.sh /etc/init.d
sudo chmod +x /etc/init.d/domoticz.sh
sudo update-rc.d domoticz.sh defaults
si je rebranche puis rebranche l'alimentation du raspberry, je n'ai pas acces à l'interface web de domoticz.
Si je demande le status de domoticz en ssh j'ai :
sudo service domoticz.sh status
● domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated)
Active: active (exited) since Fri 2019-07-26 16:49:19 CEST; 22min ago
Docs: man:systemd-sysv-generator(8)
Process: 457 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)
juil. 26 16:49:13 raspberrypi systemd[1]: Starting LSB: Home Automation System...
juil. 26 16:49:18 raspberrypi domoticz.sh[457]: 2019-07-26 16:49:18.785 Status: Domoticz V4.11031 (c)2012-2019 GizMoCuz
juil. 26 16:49:18 raspberrypi domoticz.sh[457]: 2019-07-26 16:49:18.785 Status: Build Hash: ad1a5b2ac, Date: 2019-07-26 06:20:37
juil. 26 16:49:18 raspberrypi domoticz.sh[457]: 2019-07-26 16:49:18.786 Status: Startup Path: /home/pi/domoticz/
juil. 26 16:49:18 raspberrypi domoticz.sh[457]: domoticz: Domoticz is starting up....
juil. 26 16:49:18 raspberrypi domoticz[466]: Domoticz is starting up....
juil. 26 16:49:18 raspberrypi domoticz[473]: Domoticz running...
juil. 26 16:49:19 raspberrypi systemd[1]: Started LSB: Home Automation System.
maintenant si je reboote le raspberry sans le débrancher (sudo reboot) tout fonctionne correctement.
et je je demande le status j'ai :
sudo service domoticz.sh status
● domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated)
Active: active (running) since Fri 2019-07-26 17:17:51 CEST; 37s ago
Docs: man:systemd-sysv-generator(8)
Process: 448 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)
Tasks: 18 (limit: 2200)
Memory: 32.7M
CGroup: /system.slice/domoticz.service
└─466 /home/pi/domoticz/domoticz -daemon -www 8080 -sslwww 443
juil. 26 17:17:46 raspberrypi systemd[1]: Starting LSB: Home Automation System...
juil. 26 17:17:50 raspberrypi domoticz.sh[448]: 2019-07-26 17:17:50.784 Status: Domoticz V4.11031 (c)2012-2019 GizMoCuz
juil. 26 17:17:50 raspberrypi domoticz.sh[448]: 2019-07-26 17:17:50.785 Status: Build Hash: ad1a5b2ac, Date: 2019-07-26 06:20:37
juil. 26 17:17:50 raspberrypi domoticz.sh[448]: 2019-07-26 17:17:50.785 Status: Startup Path: /home/pi/domoticz/
juil. 26 17:17:50 raspberrypi domoticz.sh[448]: domoticz: Domoticz is starting up....
juil. 26 17:17:50 raspberrypi domoticz[458]: Domoticz is starting up....
juil. 26 17:17:50 raspberrypi domoticz[466]: Domoticz running...
juil. 26 17:17:51 raspberrypi systemd[1]: Started LSB: Home Automation System.
D'ou peut venir le probleme ? Pourquoi ca fonctionne sur un reboot et pas sur une coupure de l'alimentation ?
j'ai installé domoticz sur un raspberry avec la derniere version de raspbian.
pour lancer domoticz au boot j'ai suivi la procédure suivante :
sudo cp domoticz/domoticz.sh /etc/init.d
sudo chmod +x /etc/init.d/domoticz.sh
sudo update-rc.d domoticz.sh defaults
si je rebranche puis rebranche l'alimentation du raspberry, je n'ai pas acces à l'interface web de domoticz.
Si je demande le status de domoticz en ssh j'ai :
sudo service domoticz.sh status
● domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated)
Active: active (exited) since Fri 2019-07-26 16:49:19 CEST; 22min ago
Docs: man:systemd-sysv-generator(8)
Process: 457 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)
juil. 26 16:49:13 raspberrypi systemd[1]: Starting LSB: Home Automation System...
juil. 26 16:49:18 raspberrypi domoticz.sh[457]: 2019-07-26 16:49:18.785 Status: Domoticz V4.11031 (c)2012-2019 GizMoCuz
juil. 26 16:49:18 raspberrypi domoticz.sh[457]: 2019-07-26 16:49:18.785 Status: Build Hash: ad1a5b2ac, Date: 2019-07-26 06:20:37
juil. 26 16:49:18 raspberrypi domoticz.sh[457]: 2019-07-26 16:49:18.786 Status: Startup Path: /home/pi/domoticz/
juil. 26 16:49:18 raspberrypi domoticz.sh[457]: domoticz: Domoticz is starting up....
juil. 26 16:49:18 raspberrypi domoticz[466]: Domoticz is starting up....
juil. 26 16:49:18 raspberrypi domoticz[473]: Domoticz running...
juil. 26 16:49:19 raspberrypi systemd[1]: Started LSB: Home Automation System.
maintenant si je reboote le raspberry sans le débrancher (sudo reboot) tout fonctionne correctement.
et je je demande le status j'ai :
sudo service domoticz.sh status
● domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated)
Active: active (running) since Fri 2019-07-26 17:17:51 CEST; 37s ago
Docs: man:systemd-sysv-generator(8)
Process: 448 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)
Tasks: 18 (limit: 2200)
Memory: 32.7M
CGroup: /system.slice/domoticz.service
└─466 /home/pi/domoticz/domoticz -daemon -www 8080 -sslwww 443
juil. 26 17:17:46 raspberrypi systemd[1]: Starting LSB: Home Automation System...
juil. 26 17:17:50 raspberrypi domoticz.sh[448]: 2019-07-26 17:17:50.784 Status: Domoticz V4.11031 (c)2012-2019 GizMoCuz
juil. 26 17:17:50 raspberrypi domoticz.sh[448]: 2019-07-26 17:17:50.785 Status: Build Hash: ad1a5b2ac, Date: 2019-07-26 06:20:37
juil. 26 17:17:50 raspberrypi domoticz.sh[448]: 2019-07-26 17:17:50.785 Status: Startup Path: /home/pi/domoticz/
juil. 26 17:17:50 raspberrypi domoticz.sh[448]: domoticz: Domoticz is starting up....
juil. 26 17:17:50 raspberrypi domoticz[458]: Domoticz is starting up....
juil. 26 17:17:50 raspberrypi domoticz[466]: Domoticz running...
juil. 26 17:17:51 raspberrypi systemd[1]: Started LSB: Home Automation System.
D'ou peut venir le probleme ? Pourquoi ca fonctionne sur un reboot et pas sur une coupure de l'alimentation ?