Questions tagged [systemd-timer]
The systemd-timer tag has no usage guidance.
159
questions
3
votes
2
answers
4k
views
How to configure Systemd Timer to run the service on last day of the month
I want to run a service file on the last day of every month. How to configure this? I am referring the Systemd.timers but not able to find the right approach.
Additionally will it be possible to add ...
8
votes
1
answer
9k
views
How to start user systemd.timer (s) automatically?
I have setup few user systemd.timer(s).
How to make them start automatically ? (either on system start or once user logged into X session).
After I restart of the system (even systemctl --user ...
4
votes
1
answer
3k
views
Run user's systemd timer while they don't have any open session
Are systemd per user systemd-timer running for offline users ? If not, is it possible to allow them to be running for users within a specific group ? Will the target service of the timer be launched ...
10
votes
2
answers
4k
views
using systemd timers instead of cron
I am on Arch Linux where I am trying to create a systemd timer as a cron alternative for hibernating my laptop on low battery. So I wrote these three files:
/etc/systemd/system/battery.service
[...
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 ...
14
votes
1
answer
21k
views
systemd.unit `RequiresMountsFor=` vs `ConditionPathIsDirectory=`
I am about to write service that rsync --delete directory /mnt/foo to remote server. However because of --delete option, I'd like to not run it unless /mnt/foo is mounted, as this might result in ...
1
vote
0
answers
611
views
systemd timer running rsync at 3am and stopping at 6am
How to make a systemd .timer , that starts rsync A U@H:B at 3am and stops (e.g. kill -TERM) at 6am on weekdays ?
Do I have to make one that starts at 3am,
and second that runs kill at 6am
and for ...
145
votes
4
answers
76k
views
Cron vs systemd timers
It was recently pointed out to me that an alternative to cron exists, namely systemd timers.
However, I know nothing about systemd or systemd timers. I have only used cron.
There is a little ...
73
votes
2
answers
108k
views
systemd timer every 15 minutes
I'm trying to make a systemd timer that runs every 15 minutes. Right now I have:
timer-fifteen.timer:
[Unit]
Description=15min timer
[Timer]
OnBootSec=0min
OnCalendar=*:*:0,15,30,45
Unit=timer-...