aboutsummaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'systemd')
-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