Skip to main content

All Questions

Tagged with
0 votes
1 answer
31 views

Systemd timer only starts when service is stopped

I have a service that runs a python script: [Unit] Description="Daily python service" [Service] WorkingDirectory=/home/ubuntu/python_project/ ExecStartPre=/bin/bash -c 'truncate -s 0 /var/...
RudyGoburt's user avatar
0 votes
1 answer
66 views

How to indicate hour range in Timer using OnCalendar?

systemd 219 version Ubuntu 22.04.2 LTS [Unit] Description=Run myscript.service every 5 minutes [Timer] OnCalendar= *-*-* 10-23:10/5:00 Persistent=true [Install] WantedBy=timers.target I need to run ...
Aigerim's user avatar
0 votes
1 answer
164 views

systemd timer is running task on every computer restart

I use Ubuntu. This is /etc/systemd/system/myapp.service: [Unit] Description=... After=network.target StartLimitIntervalSec=60 [Service] Type=simple Restart=no StartLimitIntervalSec=0 User=myuser ...
wykopowiedz1's user avatar
1 vote
0 answers
555 views

How do I create a systemd service for a continuously running application (only in a time window)

I have a software that basically continuously analyze a camera stream and send some information to a server, this is a headless system (Ubuntu 16.04). The application must be started every day (except ...
rok's user avatar
  • 300