Questions tagged [systemd-timer]
6 questions
2
votes
1 answer
Execute systemd service just after another using a timer
I want the apt-update timer to run on Sunday night between 4:30 and 5:30, and right after, the apt-upgrade timer. I have these settings:
cat << 'EOF' > /etc/systemd/system/apt-daily.timer
[Unit]
Description=Daily apt download…

Albert
- 49
- 1
- 5
2
votes
1 answer
Systemd timer scheduled for first start without manually starting or rebooting the server
Background
I have multiple (30+) custom services/timers which have the same structure (below in Contents section), but different timings. They have to be executed only when they are scheduled and cannot be run manually at random times. The…

Robertas Reiciunas
- 23
- 4
0
votes
0 answers
systemd script for notify-send fails with error "The connection is closed"
I am trying to run a systemd timer. I am posting all the relevant files and the error below. I have posted the nodejs file but I tried with a simple shell script as well as explained in the Edit…

Rounak Jain
- 409
- 1
- 5
- 18
0
votes
1 answer
systemd timer running at unspecified time
I am running sync.timer and sync.service unit files on systemd 245 (245.4-4ubuntu3.13). The service runs a simple curl script (/bin/sync.sh) and is scheduled to run nightly at some time between 1AM - 3AM EST via the timer.
These has been set up for…

Atsushi
- 341
- 3
- 11
0
votes
1 answer
systemd service not being triggered by its timer unit
Here is my service unit definition
[Unit]
Description=My Service
[Service]
ExecStart=/bin/bash -lc /usr/local/bin//myservice
# ExecStop=/bin/kill -15 $MAINPID
EnvironmentFile=/etc/myservice/config
User=myuser
Group=mygroup
and its timer unit…

pkaramol
- 16,451
- 43
- 149
- 324
-1
votes
1 answer
How do I configure systemd timers to run three separate tasks one after the next at a specific time?
I have three tasks that are currently being run daily by cron, one after the next, as follows:
gatekeeper ~ # ls -l /etc/cron.daily/
total 92
-rwxr-xr-x 1 root root 3814 May 10 2019 1task-A.sh
-rwxr-xr-x 1 root root 1406 Jun 28 2015…

Graham Leggett
- 911
- 7
- 20