All Questions
Tagged with systemd-timer systemctl
7
questions
0
votes
1
answer
66
views
How to indicate hour range in Timer using OnCalendar?
systemd 219 version
Ubuntu 22.04.2 LTS
[Unit]
Description=Run myscript.service every 5 minutes
[Timer]
OnCalendar= *-*-* 10-23:10/5:00
Persistent=true
[Install]
WantedBy=timers.target
I need to run ...
3
votes
1
answer
282
views
Why systemctl status shows a time in the future and the amount of time left?
When we issue "systemctl status", we usually get in the output, a line showing the status and for how long it has been in that status.
Like: (I issued that few minutes ago)
Active: active (...
0
votes
0
answers
286
views
systemctl timer does not seem to trigger its service
I am trying to set up auto-renewal for certbot, and have created the following two files in /etc/systemd/system/:
certbot.service
[Unit]
Description=Let's Encrypt renewal
[Service]
Type=oneshot
...
0
votes
1
answer
2k
views
Systemctl service not killed after timeout on RuntimeMaxSec
My script runs every minute (with systemctl timer) but it will occasionally hang for ever, meaning that unless I manually stop it, it won't run again. So I implemented a timeout with RuntimeMaxSec but ...
0
votes
2
answers
6k
views
systemctl Persistent timer and service, when computer turned off
How do the systemctl timer works when the computer is turned off at the given trigger time?
There is the option "Persistent", but when exactly is the command executed?
In how far is it ...
3
votes
1
answer
872
views
systemctl start foo.timer also starts foo.service even though the OnCalendar criteria hasn't been met
So I have my service unit (runs some node code) and my timer unit
Service:
[Unit]
Description=foo
[Service]
Type=oneshot
ExecStart=/home/ubuntu/services/foo/start.sh
Timer
[Unit]
Description=foo ...
2
votes
2
answers
10k
views
How to run systemctl command inside ExecStart?
I am trying to restart all the stale sqlrelay connection services using systemd.timer. Systemd service looks like this:
[Unit]
Description=sqlrelay-state-connection-restart
[Service]
Type=oneshot
...