bgewehr/Gartenwasser

init-Scripts not starting python daemons correctly

Closed this issue · 1 comments

When the system boots up, the python daemons are not correctly started. They try to start but do not stay in the process list.

Will have to change the init-scripts to get a better result.

Currently, a workaround could be to place the following in the rc.local above the exit line:

/usr/bin/python /location of your Gartenwasser/mqtt-gpio-monitor.py &
/usr/bin/python /location of your Gartenwasser/GartenwasserUI.py &

If you do so, leave the init-scripts untouched.

Issue solved.

Had to put the dependency to mosquitto in the LSB header of the init-scripts to make them start S03 (start after mosquitto, which is started S02) Now the init.d scripts are working on startup.