summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauren Perry <lauren.perry@codethink.co.uk>2014-12-10 11:32:42 +0000
committerLauren Perry <lauren.perry@codethink.co.uk>2014-12-17 12:29:15 +0000
commitf173a9c577873660fff3258a352736767576f255 (patch)
treed3ca0ddb5c12427450b9bd119d4a40c31ff67f91
parent779fd24b8e9926e5b8cc2949589544a58abbda80 (diff)
downloadfirehose-f173a9c577873660fff3258a352736767576f255.tar.gz
Add systemd styled timers to automate Firehose checking process
-rw-r--r--firehose.service10
-rw-r--r--firehose.timer11
2 files changed, 21 insertions, 0 deletions
diff --git a/firehose.service b/firehose.service
new file mode 100644
index 0000000..274127d
--- /dev/null
+++ b/firehose.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Firehose
+
+[Service]
+Type=simple
+User=firehose
+ExecStart=/usr/bin/firehose.sh /home/firehose/firehose/examples/linux-master.yaml
+
+[Install]
+WantedBy=multi-user.target
diff --git a/firehose.timer b/firehose.timer
new file mode 100644
index 0000000..8f919cc
--- /dev/null
+++ b/firehose.timer
@@ -0,0 +1,11 @@
+[Unit]
+Description=Runs firehose every six hours
+
+[Timer]
+OnBootSec=0
+OnUnitActiveSec=6h
+Unit=firehose.service
+
+[Install]
+WantedBy=multi-user.target
+