Skip to content




systemd


Table of Content

systemd

URL on timer.

https://wiki.archlinux.jp/index.php/Systemd/%E3%82%BF%E3%82%A4%E3%83%9E%E3%83%BC

Example service and timer files.

[Unit]
Description=DDNS Update
Wants=ddns_update.timer

[Service]
ExecStart=/bin/sh /usr/local/bin/ddns.sh
EnvironmentFile=/usr/local/etc/ddns_google_domains/secrets.txt

[Install]
WantedBy=multi-user.target
[Unit]
Description=DDNS Update Script Timer
Requires=ddns_update.service

[Timer]
Unit=ddns_update.service
OnCalendar=Tue *-*-* 15:00:00

[Install]
WantedBy=timers.target