All Questions
Tagged with systemd-timer services
16
questions
0
votes
1
answer
31
views
Systemd timer only starts when service is stopped
I have a service that runs a python script:
[Unit]
Description="Daily python service"
[Service]
WorkingDirectory=/home/ubuntu/python_project/
ExecStartPre=/bin/bash -c 'truncate -s 0 /var/...
1
vote
1
answer
74
views
Ubuntu systemd service with timer is slow
I've set up a systemd timer to trigger a service every minute on Ubuntu 22.04, but I'm encountering an issue where the execution time of the service significantly increases after the first run. The ...
0
votes
0
answers
331
views
How do I correctly set up systemd-time-wait-sync.service
I have to set up a a timer with onCalendar=*:30 on a Raspberry Pi with no internet connection but using instead a battery powered RTC.
To sync my RTC I followed this post.
On the manual page of ...
1
vote
2
answers
234
views
How to avoid systemd periodic realtime timer running at boot
I have a realtime timer with Persistent=false running immediately after boot although my objective is to run it periodically!
I saw it is a rather common question but none of the answers I found in ...
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
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: ...
9
votes
1
answer
3k
views
How to make a systemd-timer depend on internet connectivity?
I'm using systemd-timer to periodically run a script which consumes a webservice.
Problem is, upon system resume or wake-up, internet connectivity would not get started right away but the timer gets ...
0
votes
1
answer
164
views
systemd timer is running task on every computer restart
I use Ubuntu.
This is /etc/systemd/system/myapp.service:
[Unit]
Description=...
After=network.target
StartLimitIntervalSec=60
[Service]
Type=simple
Restart=no
StartLimitIntervalSec=0
User=myuser
...
5
votes
1
answer
5k
views
Systemd: How to get a timer to run after a required service?
Currently, I have this systemd timer (my.timer):
[Unit]
Description=My Timer
[Timer]
OnActiveSec=30
Unit=my-subsequent.service
[Install]
WantedBy=multi-user.target
The timer is set to activate ...
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 ...
0
votes
0
answers
572
views
Where should I see the result of plotting a chart through SSH?
I have created a systemd service like following code on my CentOS remote server that runs a Jupyter app named scraping-cdn-plot-gavahi-aati.ipynb that plots some charts. This is the service:
[Unit]
...
2
votes
0
answers
272
views
systemd activates unit ran by timer upon changing the OnCalendar directive
I have a systemd timer setup with this OnCalendar value:
OnCalendar=*-*-* 05:35:00
Upon changing it to
OnCalendar=*-*-* 06:35:00
And running systemctl daemon-reload to reload the configratuion ...
4
votes
1
answer
6k
views
Restart systemd .service with .timer unit
I have the following systemd myscript.service unit that executes an script:
[Unit]
Description=MyScript
Wants=time-sync.target
[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=/usr/local/bin/...
0
votes
1
answer
552
views
How the keyword `After` works in systemd service?
I have prepared two services a.service and b.service. The a.service run using a.timer.
a.service
[Unit]
Description=service a
After=network-online.target
Wants=network-online.target
[Service]
Type=...
14
votes
2
answers
15k
views
Pipe output of script through Exec in systemd service?
I'm trying to set up a systemd service in order to launch a set of files on a daily basis (different types of journals) from directories based off the date. For example, a todo list for today would be ...