Skip to main content

Questions tagged [systemd-timer]

The tag has no usage guidance.

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 ...
Dinesh P.R.'s user avatar
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 ...
Grzegorz Wierzowiecki's user avatar
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 ...
Zulgrib's user avatar
  • 984
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 [...
71GA's user avatar
  • 1,176
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 ...
Ruben's user avatar
  • 159
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 ...
Grzegorz Wierzowiecki's user avatar
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 ...
Grzegorz Wierzowiecki's user avatar
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 ...
Faheem Mitha's user avatar
  • 35.4k
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-...
Lily Hahn's user avatar
  • 833

15 30 50 per page
1
7 8 9 10
11