aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiederick de Vries <diederick@diederickdevries.net>2018-06-14 19:37:51 +0200
committerDiederick de Vries <diederick@diederickdevries.net>2018-06-14 19:37:51 +0200
commit18bd79d74770ac0540f9c9328a4b5d05b3b2d6b8 (patch)
treeb53c3e3f2d43aff3b242856c522074a19fde1ea8
parent9dd98a7fda86ace5702a718ea8a5f458306f8e82 (diff)
downloadcareless-18bd79d74770ac0540f9c9328a4b5d05b3b2d6b8.tar.gz
careless-18bd79d74770ac0540f9c9328a4b5d05b3b2d6b8.tar.bz2
careless-18bd79d74770ac0540f9c9328a4b5d05b3b2d6b8.zip
Add systemd service and timer file
-rw-r--r--careless.service11
-rw-r--r--careless.timer10
2 files changed, 21 insertions, 0 deletions
diff --git a/careless.service b/careless.service
new file mode 100644
index 0000000..9c0afd3
--- /dev/null
+++ b/careless.service
@@ -0,0 +1,11 @@
1[Unit]
2Description=Careless Daemon
3After=network.target
4
5[Service]
6Type=simple
7ExecStart=/usr/bin/groovy /path/to/careless/careless.groovy /path/to/careless/properties.conf
8
9[Install]
10WantedBy=multi-user.target
11
diff --git a/careless.timer b/careless.timer
new file mode 100644
index 0000000..cab1c8b
--- /dev/null
+++ b/careless.timer
@@ -0,0 +1,10 @@
1[Unit]
2Description=Run careless hourly and on boot
3
4[Timer]
5OnBootSec=15min
6OnCalendar=0/1:00:00
7
8[Install]
9WantedBy=timers.target
10