aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiederick de Vries <diederick@diederickdevries.net>2018-06-13 21:58:44 +0200
committerDiederick de Vries <diederick@diederickdevries.net>2018-06-13 22:03:38 +0200
commit4d83a5dfaf20eaae8b030d1422e966d4ad16d969 (patch)
treec0027a5c81ff36053fc16e2e716ca69a0a00fb99
parent2b700ad6ad010102379d58660895adf03b926a2c (diff)
downloadaftercare-4d83a5dfaf20eaae8b030d1422e966d4ad16d969.tar.gz
aftercare-4d83a5dfaf20eaae8b030d1422e966d4ad16d969.tar.bz2
aftercare-4d83a5dfaf20eaae8b030d1422e966d4ad16d969.zip
Add systemd service and timer file
-rw-r--r--aftercare.service11
-rw-r--r--aftercare.timer10
2 files changed, 21 insertions, 0 deletions
diff --git a/aftercare.service b/aftercare.service
new file mode 100644
index 0000000..0a933d2
--- /dev/null
+++ b/aftercare.service
@@ -0,0 +1,11 @@
1[Unit]
2Description=Aftercare Daemon
3After=network.target
4
5[Service]
6Type=simple
7ExecStart=/usr/bin/groovy /opt/aftercare/aftercare.groovy /opt/aftercare/properties.conf
8
9[Install]
10WantedBy=multi-user.target
11
diff --git a/aftercare.timer b/aftercare.timer
new file mode 100644
index 0000000..3714963
--- /dev/null
+++ b/aftercare.timer
@@ -0,0 +1,10 @@
1[Unit]
2Description=Run aftercare hourly and on boot
3
4[Timer]
5OnBootSec=20min
6OnCalendar=0/1:00:00
7
8[Install]
9WantedBy=timers.target
10