You are not logged in.
Pages: 1
I wrote this small user timer:
# /etc/systemd/user/memrise.timer
[Unit]
Description=daily scraping of memrise items
[Timer]
OnCalendar=daily
# run immediately if we missed a backup for some reason
Persistent=true
AccuracySec=15
[Install]
WantedBy=timers.target
# /etc/systemd/user/memrise.service
[Unit]
Description=scraping of memrise items
[Service]
Nice=19
IOSchedulingClass=2
IOSchedulingPriority=7
ExecStart=/home/dori/bin/memrise_stats --save-kanji-learnt
But the timer is not behaving as expected. When my computer is sleeping between 0am and 0:15am, I want the job to start as soon as the computer awakes, and I thought that was what
Persistent=true
was for. Yet, every morning I need to manually run
$ systemctl --user start memrise
.
What have I been missing?
Thanks in advance!
Offline
I thought I did it after writing the script, but now that I'm checking it, I'm getting those errors:
$ systemctl --user enable memrise.service
Failed to execute operation: No such file or directory
$ sudo systemctl --user enable memrise.service ⏎
[sudo] password for dori:
Failed to get D-Bus connection: Connection refused
$
weird.
Offline
Pages: 1