aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-01-18 16:49:21 +0100
committerlonkaars <loek@pipeframe.xyz>2022-01-18 16:49:21 +0100
commitb8406f36823bbd2b6e76da32be2530a4cca3c770 (patch)
tree7abb5372c17bed619f0d14731836b7867bd43320
parentf79ae2a74dcd9f9a7feec3b6da37e666a8ea3b96 (diff)
added systemd units
-rw-r--r--systemd/autonyaa.service9
-rw-r--r--systemd/autonyaa.timer8
2 files changed, 17 insertions, 0 deletions
diff --git a/systemd/autonyaa.service b/systemd/autonyaa.service
new file mode 100644
index 0000000..3389b9f
--- /dev/null
+++ b/systemd/autonyaa.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Autonyaa
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/autonyaa/autonyaa.py
+
+[Install]
+WantedBy=multi-user.target
diff --git a/systemd/autonyaa.timer b/systemd/autonyaa.timer
new file mode 100644
index 0000000..df030f2
--- /dev/null
+++ b/systemd/autonyaa.timer
@@ -0,0 +1,8 @@
+[Unit]
+Description=Autonyaa timer
+
+[Timer]
+OnCalendar=*-*-* *:*/30:00
+
+[Install]
+WantedBy=timers.target