Questions tagged [systemd-timer]
The systemd-timer tag has no usage guidance.
44
questions with no upvoted or accepted answers
5
votes
1
answer
1k
views
systemd: How to run a job both periodically and once at system shutdown?
I want to run a job periodically (e.g., every 5 minutes), and finally once at system shutdown.
Systemd supports timers, which could be used to run a job periodically. It also supports to run a job at ...
4
votes
1
answer
1k
views
Start request repeated too quickly
I am trying to make a periodic backup (OnCalendar=daily) to my dropbox via rclone. Since this runs on a laptop, I use Persistent=true. If I wake up the laptop, it takes a few seconds until the network ...
3
votes
0
answers
228
views
A monotonic systemd timer that is not distorted by suspension and downtime?
This is what I want: A timer that runs every X minutes by the wall clock. If the computer is asleep, then it should run as soon as it wakes up. And then again and again, every X minutes by the wall ...
3
votes
0
answers
1k
views
How to edit a systemd timer where persistent=true?
This on a Raspberry Pi 4 running Buster.
I have a systemd timer that runs once a day at a particular time. I also have persistent=true. I want to change that time. But, if I edit the file with a new ...
3
votes
0
answers
356
views
systemd service to skip overlapping runs
I am trying to schedule a service using systemd on Oracle Linux Server 7.7.
The use-case is simple; the timer needs to run the service in every hour (between 2PM and 9AM) - but, only if that is not ...
2
votes
0
answers
59
views
Systemd - run bash script after user login on specific days
I use the i3 window manager and every day of remote work I would like to run a script that is responsible for setting up my monitors. On Tuesdays, I work onsite, then I'll want to run another script.
...
2
votes
0
answers
389
views
systemd.timer to catch up on missed runs of the services
Following up on Schedule a job every 20 days,
This is for renewing purpose, thus can be done sooner than 20 days. But I'm doing it from my laptop, which would be put into sleep most of the time. Thus ...
2
votes
0
answers
366
views
Systemd - stop service at calendar time
I have a systemd service I would like to keep running between set times (let's say midnight to 6 AM).
The closest thing I have found so far is limiting it to a set amount of runtime:
[Unit]
...
2
votes
1
answer
895
views
How to display echo messages from a systemd-timer script in journalctl?
I run via a systemd timer a shell script that starts some programs (they display some output) and uses echo to provide some feedback.
root@srv ~ [127]# cat /etc/systemd/system/borg.timer
[Unit]
...
2
votes
0
answers
272
views
systemd activates unit ran by timer upon changing the OnCalendar directive
I have a systemd timer setup with this OnCalendar value:
OnCalendar=*-*-* 05:35:00
Upon changing it to
OnCalendar=*-*-* 06:35:00
And running systemctl daemon-reload to reload the configratuion ...
2
votes
0
answers
587
views
Set systemd timer to an odd and specific number of days
I'm using systemd.timers on CentOS 7 server and have a timer set to automatically renew Certbot-managed Let's Encrypt website certificate.
autorenewal.service:
[Unit]
Description=certbot certificate ...
2
votes
1
answer
2k
views
Using systemd timer to shut down and start service
I have created a ServiceName.service file.
[Unit]
Description=ServiceName Service
After=network.target
[Service]
ExecStart=/usr/local/bin/<scriptName>.sh
And I have create a ServiceName.timer ...
2
votes
1
answer
1k
views
Sync mail with offlineimap via systemd service/timer; getting password from gnome keyring
I am trying to autosync my mail in mutt using offlineimap via a systemd service. I am using these files and have moved them to the /etc/systemd/user folder.
However, I am storing my password via the ...
1
vote
0
answers
279
views
systemd dbus service continuously updates system time
I am trying to set my centos vm's date to 1 months prior date for some license validation,
for that I have disabled systemd-timesyncd and ntpd service but still after setting the time to -32 days the ...
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 ...