Heb gewoon kant en klare script gedraait, Google zegt ook niks.
Op wiki nog iets gevonden dat er wat aangepast moet worden, wat hebben jullie hier staan ?
Regeltje: DAEMON=/home/$USERNAME/domoticz/$NAME
Edit the startup script and change the USERNAME, DAEMON and DAEMON_ARGS parameters to reflect your current settings
sudo vi /etc/init.d/domoticz.sh
USERNAME=pi
DAEMON=/home/$USERNAME/domoticz/$NAME
DAEMON_ARGS="-daemon -www 8080"
Edit: de service starten als root of pi maakt niets uit.
Onderstaand ook al geprobeerd en vervolgens opnieuw de error Deamon is dat een map wat er hoort te zijn, dacht dat DAEMON de apache server ofzo was?
pi@raspberry:~ $ /etc/init.d/domoticz.sh start
[ ok ] Starting domoticz.sh (via systemctl): domoticz.service.
Onderstaand levert me dit op:
pi@raspberry:~/domoticz $ sudo ./domoticz
sudo: unable to execute ./domoticz: No such file or directory
Edit onderstaand rechten/ownersjip nog uitgevoerd dat ging goed:
sudo cp domoticz.sh /etc/init.d
sudo chmod +x /etc/init.d/domoticz.sh
sudo update-rc.d domoticz.sh defaults
[
Voor 42% gewijzigd door
mr_evil08 op 26-11-2019 21:14
]