From 3370327db0bade5b7e4aec12402fe4902b32be0f Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Fri, 22 May 2015 20:15:23 +0300 Subject: [PATCH] ydns-simple service & timer --- etc/systemd/system/README.md | 10 ++++++---- etc/systemd/system/ydns-simple.service | 9 +++++++++ etc/systemd/system/ydns-simple.timer | 9 +++++++++ 3 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 etc/systemd/system/ydns-simple.service create mode 100644 etc/systemd/system/ydns-simple.timer diff --git a/etc/systemd/system/README.md b/etc/systemd/system/README.md index aacd0085..acefdb34 100644 --- a/etc/systemd/system/README.md +++ b/etc/systemd/system/README.md @@ -1,5 +1,7 @@ -The IPv6 files are copied from https://www.reddit.com/r/raspberry_pi/comments/14vcpz/rpi_as_an_ipv6_router_using_a_sixxs_tunnel_and/ -an they are here because they were my biggest difficulty with having +* The IPv6 files are copied from https://www.reddit.com/r/raspberry_pi/comments/14vcpz/rpi_as_an_ipv6_router_using_a_sixxs_tunnel_and/ + and they are here because they were my biggest difficulty with having Arch on Pi as IPv6 router. - -Also helpful https://wiki.archlinux.org/index.php/IPv6_tunnel_broker_setup + * Also helpful + https://wiki.archlinux.org/index.php/IPv6_tunnel_broker_setup +* ydns-simple.\* are for https://github.com/Mikaela/scripts/blob/gh-pages/bash/ydns-simple and I am just curious and want to avoid installing cron to + my phone. diff --git a/etc/systemd/system/ydns-simple.service b/etc/systemd/system/ydns-simple.service new file mode 100644 index 00000000..f00218e4 --- /dev/null +++ b/etc/systemd/system/ydns-simple.service @@ -0,0 +1,9 @@ +[Unit] +Description=ydns-simple service + +[Service] +Type=simple +ExecStart=/usr/local/bin/ydns-simple + +[Install] +WantedBy=ydns-simple.timer diff --git a/etc/systemd/system/ydns-simple.timer b/etc/systemd/system/ydns-simple.timer new file mode 100644 index 00000000..703639e6 --- /dev/null +++ b/etc/systemd/system/ydns-simple.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Run ydns-simple every 5 minutes + +[Timer] +OnBootSec=1min +OnUnitActiveSec=5min + +[Install] +WantedBy=timers.target