commit 6e3b08ddea123f036478e4c45a249cf62d060c28 parent f7f28cd36e1c350992b33d0b5d48a2f6da796839 Author: dwrz <dwrz@dwrz.net> Date: Thu, 27 Oct 2022 20:04:24 +0000 Add ddns service and timer Diffstat:
A | init/ddns.service | | | 11 | +++++++++++ |
A | init/ddns.timer | | | 14 | ++++++++++++++ |
2 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/init/ddns.service b/init/ddns.service @@ -0,0 +1,11 @@ +[Unit] +Description=DDNS +RefuseManualStart=no +RefuseManualStop=yes + +[Service] +Type=oneshot +ExecStart=r53 + +[Install] +WantedBy=timers.target diff --git a/init/ddns.timer b/init/ddns.timer @@ -0,0 +1,14 @@ +[Unit] +Description=DDNS +RefuseManualStart=no +RefuseManualStop=no + +[Timer] +OnBootSec=1min +OnCalendar=*-*-* *:00:00 +Persistent=true +RandomizedDelaySec=1min +Unit=ddns.service + +[Install] +WantedBy=default.target