summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2023-07-10 10:27:15 -0700
committerJakub Kicinski <kuba@kernel.org>2023-07-10 10:27:31 -0700
commitf8c1a2d9808021b8db3364cebc7407c09c9c539e (patch)
tree092d1d075690870ec0b7cf86df53a505561a3a79
parent2ebd5723f8085107415a5a922a1cf00bf0244b8d (diff)
downloadmisc-f8c1a2d9808021b8db3364cebc7407c09c9c539e.tar.gz
add systemd files
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r--net-next.service12
-rw-r--r--net-next.timer9
2 files changed, 21 insertions, 0 deletions
diff --git a/net-next.service b/net-next.service
new file mode 100644
index 0000000..b13230e
--- /dev/null
+++ b/net-next.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Fetch net-next status
+After=network.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/curl -s https://git.kernel.org/pub/scm/linux/kernel/git/netdev/misc.git/plain/net-next.html -o /usr/share/nginx/html/net-next.html
+User=nginx
+Group=nginx
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-next.timer b/net-next.timer
new file mode 100644
index 0000000..4cf48db
--- /dev/null
+++ b/net-next.timer
@@ -0,0 +1,9 @@
+[Unit]
+Description=Fetch net-next status
+
+[Timer]
+OnBootSec=15min
+OnUnitActiveSec=15min
+
+[Install]
+WantedBy=timers.target