Files
aglab.dotfiles/.config/systemd/user/on-hourly@.timer
SilverAg.L a1a0c2bdb6 重写 startb;补点中文注释;删减多余的定时模板
为啥又中文了?英文太长,中英夹杂键起来别扭。

不会真有人用我原始人般的配置吧?
2026-03-24 03:08:10 +08:00

17 lines
489 B
SYSTEMD
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 像这种有明显时间规律的定时任务我懒得专门搞配套。不觉得 timer 非得跟 service 同名搞绑定很啰嗦吗?
# 我完全可以 on-hourly@renew-wallpaper.timer、on-hourly@webapi-health-check.timer 嘛。
# 当然这样也算不上简洁,但至少不需要另装个 cronarch 不自带)。
[Unit]
Description=Run %i hourly
[Timer]
OnCalendar=hourly
RandomizedDelaySec=1m
AccuracySec=1s
Persistent=true
Unit=%i.service
[Install]
WantedBy=timers.target