Iâm also poking around with removing nohup, verbosing the serviceâs python -v main.py, and turning on systemd debugging.
That said, I am new to systemd, python, all of this, so basically Iâm a smart person with no experience with these specific domains who has turned on logging
Still, possibly finding some things.
One small thing that should definitely be done is this small modification to stop.sh:
pidof pd | xargs -r kill
The -r flag tells xargs to not run if no arguments are passed. Without this, if pidof pd returns nothing for whatever reason, the kill command fails and stop.sh just hangs.