diff options
author | Lauren Perry <lauren.perry@codethink.co.uk> | 2014-12-10 11:32:42 +0000 |
---|---|---|
committer | Lauren Perry <lauren.perry@codethink.co.uk> | 2014-12-17 12:29:15 +0000 |
commit | f173a9c577873660fff3258a352736767576f255 (patch) | |
tree | d3ca0ddb5c12427450b9bd119d4a40c31ff67f91 | |
parent | 779fd24b8e9926e5b8cc2949589544a58abbda80 (diff) | |
download | firehose-f173a9c577873660fff3258a352736767576f255.tar.gz |
Add systemd styled timers to automate Firehose checking process
-rw-r--r-- | firehose.service | 10 | ||||
-rw-r--r-- | firehose.timer | 11 |
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 + |