All Questions
Tagged with systemd-timer linux
11
questions
0
votes
1
answer
65
views
Systemd executable failed to read file from CacheDirectory with Permission Denied
I have a Golang binary that runs every 5 mins. It is supposed to create & update a text file which needs to be write restricted. To run this binary I created a systemd service and a systemd timer ...
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 (...
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]
...
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 ...
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
...
2
votes
1
answer
6k
views
How to make a systemd timer that runs every 2 days? [duplicate]
I am looking a guide to understand how OnCalendar works. I don't understand ..... Please how can I make a systemd timer runs every 2 days?
[Unit]
Description=systemd every 2 days.
[Timer]
OnCalendar=*...
1
vote
1
answer
3k
views
systemd timer every 8 hours
I am fairly new using systemd timers, and I am having some issues.
I am trying to schedule a script that runs daily, every 8 hours, at 6 AM, 2 PM, and 10 PM. The time starts correctly, and it shows ...
2
votes
2
answers
178
views
Embedded Linux - Constant Loop time
I am using a Colibri iMX6 DualLite SoM from Toradex. It is based on a multicore ARM Cortex™A9 processor. I'm running an Embedded Linux distribution provided by toradex in it. We are developing a ...
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=...
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
...
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
[...