systemd timer/service seems working..

The Raspberry Pi is a series of credit card-sized single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in schools and developing countries.

Post Reply
User avatar
/RaspberryPi
Corporate
Posts: 2449
Joined: Wed Jun 05, 2019 1:29 am

systemd timer/service seems working..

Post by /RaspberryPi »

but script isn't loaded periodically every 5 minutes ('16h ago'). Here are the 'systemctl status myservice' and 'systemctl status myservice.timer' output. Looking fine to me.
? lueftung.service - execute mypythonapp every 5 minutes (Service)
Loaded: loaded (/etc/systemd/system/myservice.service; enabled; vendor preset: enabled)
Active: active (exited) since Mon 2022-06-20 21:22:26 CEST; 16h ago
Process: 28519 ExecStart=/usr/bin/python3 /root/programs/mypythonapp.py (code=exited, status=0/SUCCESS)
Main PID: 28519 (code=exited, status=0/SUCCESS)
Jun 20 21:22:26 pixtendpi systemd[1]: Starts mypythonapp every 5 minutes (Service).
Jun 20 21:22:26 pixtendpi python3[28519]: debug output: script working!
? lueftung.timer - execute mypythonapp every 5 minutes
Loaded: loaded (/etc/systemd/system/myservice.timer; enabled; vendor preset: enabled)
Active: active (running) since Mon 2022-06-20 21:21:56 CEST; 16h ago
Trigger: n/a
Jun 20 21:21:56 pixtendpi systemd[1]: Stopped myservice every 5 minutes.
Jun 20 21:21:56 pixtendpi systemd[1]: Stopped myservice every 5 minutes
Jun 20 21:21:56 pixtendpi systemd[1]: Started myservice every 5 minutes
What can I do? What's going wrong?
Running DietPi 8.4.2, based on debian bullseye on RPi 3A+

submitted by /u/LokusFokus
[link] [comments]

More...
Post Reply

Return to “Raspberry Pi Forum”