Skip to main content

Questions tagged [systemd-timer]

The tag has no usage guidance.

1 vote
1 answer
313 views

Using systemd timer to change the background wallpaper

I am trying to use systemd timers to change my background wallpaper and it doesn't seem to be doing what I want. Blelow I have listed the relevant files and outputs that I have. bgchange.timer [Unit] ...
Emobe's user avatar
  • 123
0 votes
1 answer
386 views

How do you create a systemd user timer that will start only after X has started?

I currently have this timer: [Unit] Description=Schedule wallpaper rotation [Timer] OnCalendar=*-*-* *:00:00 Persistent=true [Install] WantedBy=graphical-session.target Which runs this service: [...
Abacus Lever's user avatar
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] ...
PGEL's user avatar
  • 157
0 votes
1 answer
922 views

systemd: Failed to parse calendar specification, ignoring

I am trying to clean my docker registry daily using systemd: Here is myfile contents: [Unit] Description=registry-gc [Timer] OnCalendar=41 15 * * * Persistent=true [Install] WantedBy=timers.target ...
H'H's user avatar
  • 123
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] ...
WoJ's user avatar
  • 1,575
0 votes
1 answer
1k views

systemd: Failed to parse calendar specification, ignoring: 5m

I am trying to get a simple systemd service to run on a timer unit. For some reason, systemd doesn't seem to like the way I am specifying time. The script worked when I used minutely or daily as the ...
JLCarveth's user avatar
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 ...
Buadhai's user avatar
  • 235
2 votes
1 answer
942 views

How to create an ephemeral user-level systemd timer on the commandline without unit/timer files?

Suppose I want to run the command notify-send "invoked" "$(date)" every 5 seconds using systemd timers. I know how to create a corresponding unit file and a timer file, then enable ...
Zeta.Investigator's user avatar
0 votes
1 answer
303 views

Systemd: Start service if a path is found but only between 9AM and 6PM

I wonder if there's some way to have both the functionality of a Path unit and a Timer. The idea is to start a specific service if a path on the system is found but only between 9AM and 6PM. Currently ...
TCB13's user avatar
  • 741
0 votes
1 answer
516 views

systemd timer does not display trigger & does not repeat

As explained in GoAccess 1.4 detailed tutorial, I've create a goa-daily.timer [Unit] Description=Daily update of GoAccess reports [Timer] # Every day @ 3 O'clock OnCalendar=*-*-* 03:00:00 ...
openHBP's user avatar
  • 101
0 votes
1 answer
904 views

Trouble with keeping process launched by systemd service alive

I am trying to to get my first systemd service working as desired. Here is what I have: gateway-watchdog.service: # A systemd service for the Gateway Watchdog [Unit] Description=gateway-watchdog: ...
nabelekt's user avatar
2 votes
1 answer
3k views

disabled/static systemd service unit is always started at reboot (systemd timers as cron replacement)

Summary A systemd service unit that is disabled ("static") and is only supposed to be triggered by a timer is run on every reboot. Background This was a service unit (in /etc/systemd/system/)...
mattpr's user avatar
  • 191
0 votes
3 answers
150 views

What is the easiest way to run a program from time X to time Y?

There is a certain potentially failing process that I want to run until it succeeds, during the night time, say, from 23:00 to 7:00, but not later. A possible solution would be to: Add a cron job for ...
Vladimir Nikishkin's user avatar
0 votes
0 answers
87 views

What is the most efficient way to run a task every X hours of runtime, accumulated over all power-ons?

Let us assume that I have a machine which wakes up at 7:00, does some work, usually for 15 minutes, but sometimes for days (e.g., experiment supervision), and after the works is done, it powers ...
Vladimir Nikishkin's user avatar
4 votes
2 answers
2k views

OnCalendar systemd timer unit still executes at boot, how to stop it?

I have the following unit enabled and started [Unit] Description=Schedule a nightly execution at 03.15 for Backup ROOT # Allow manual start RefuseManualStart=no # Allow manual stop RefuseManualStop=no ...
Boris Hamanov's user avatar

15 30 50 per page
1 2
3
4 5
11