output of systemctl status pi_stats.service gives me this:Any suggestions what might be going on here?
I'd have to guess and I won't do that.
Some tips:
- [edit]
Look at the output of[/edit]Code:
systemctl status your-service-name
- Look for errors in the output of
Code:
dmesg
- Looks for errors in the systemd journal:
Code:
sudo journalctl --unit you-service-name
- For Bullseye and earlier look for error in /var/log/syslog and /var/log/syslog.1
● pi_stats.service - Pi Stats Script
Loaded: loaded (/etc/systemd/system/pi_stats.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2024-08-19 21:19:34 AEST; 9h ago
Process: 963 ExecStart=/usr/bin/python3 /home/pi/Pi_Stats.py (code=exited, status=1/FAILURE)
Main PID: 963 (code=exited, status=1/FAILURE)
CPU: 400ms
There were no errors in the output of dmesg
My script runs fine when i manually load it from a command line.. just wont run on bootup
Statistics: Posted by BPT1901 — Mon Aug 19, 2024 8:35 pm