summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+