Custom Script not running at startup despite following guidance...
-
@lackyluuk - thanks but, as above, tried that already. No joy
-
@Substring.
Finally getting somewhere! Did as you directed, and the log reads:[ 16.71] : Starting S92switch [ 16.73] : script /recalbox/scripts/powerswitch.sh [ STARTED ] [ 17.05] : Starting S94manager Will not start pm2 : system.api.enabled is set to 0 [ 17.32] : Launching FanControl
And that's the end of the log at startup. The fan doesn't run, but it does if I run the py script from shell.
Also tried:
/usr/bin/python fanControl.py
from shell - script booted fine.
also added logging after the python call in the bash script. This also logged, indicating the python call didn't crash the bash script?
[ 17.07] : Launching FanControl [ 17.17] : fanControl call made.
So - it's looking like python is the culprit? What's next?
-
@stigzler You must understand that a init script doesn't have tne same environment as a logged in user. That's why I suggested you put the full path to python in the custom.sh. I do mean it
Go on the IRC channel, there is a link in the topbar. Then call me with @substring, and be patient (I'm on CEST timezone)
-
It was 1am when you tried to poke me lol
-
@substring - apologies on there now..
-
So, there were 2 culprits :
- had to start the .py as multiprocess
- the script tried to open an unexisting logfile : forced the path
-
Many thanks @SubString. Actually remoted into my machine and sorted it all for me. What a star!