-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
bug 🐛Programming errors, that need preferential fixingProgramming errors, that need preferential fixing
Milestone
Description
Submission type
- Bug report
- Request for enhancement (RFE)
NOTE: Do not submit anything other than bug reports or RFEs via the issue tracker!
systemd version the issue has been seen with
$ systemctl --version
systemd 231
+PAM -AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN
NOTE: Do not submit bug reports about anything but the two most recently released systemd versions upstream!
Used distribution
ArchLinux
In case of bug report: Expected behaviour you didn't see
The timer should run once every hour, but it runs only once.
In case of bug report: Unexpected behaviour you saw
The timer shows the scheduled next time as in the past.
In case of bug report: Steps to reproduce the problem
- Create a target for the timer.
$ cat > ~/.config/systemd/user/timer-hourly.target <<EOF
[Unit]
Description=Hourly Timer Target
EOF
- Create a timer.
$ cat > ~/.config/systemd/user/timer-hourly.timer <<EOF
[Unit]
Description=Hourly Timer
[Timer]
OnCalendar=hourly
Persistent=true
Unit=timer-hourly.target
[Install]
WantedBy=timers.target
EOF
- Enable and start the timer.
$ systemctl --user daemon-reload
$ systemctl --user enable timer-hourly.timer
$ systemctl --user start timer-hourly.timer
- The timer will now run once.
Subsequent times will be in the past and the timer will not run again.
If the computer reboots or you restart the timer, it correctly notices, that it missed the last execution and executes once, but after that it again calculates the wrong time.
$ date
Mi 24. Aug 10:59:15 CEST 2016
$ systemctl --user list-timers
NEXT LEFT LAST PASSED UNIT ACTIVATES
Mi 2016-08-24 10:00:00 CEST 59min ago Mi 2016-08-24 10:57:27 CEST 1min 49s ago timer-hourly.timer timer-hourly.target
1 timers listed.
Pass --all to see loaded but inactive timers, too.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bug 🐛Programming errors, that need preferential fixingProgramming errors, that need preferential fixing