Commit b17c8d48 authored by telyn's avatar telyn
Browse files

Run symbiosis-monit from a systemd timer.

parent 84e1e331
......@@ -3,7 +3,7 @@ Section: web
Priority: extra
Maintainer: James Carter <jcarter@bytemark.co.uk>
Uploaders: Patrick J Cherry <patrick@bytemark.co.uk>, Steve Kemp <steve@bytemark.co.uk>
Build-Depends: debhelper (>= 7.0.0), txt2man, gem2deb, ruby
Build-Depends: debhelper (>= 7.0.0), txt2man, gem2deb, ruby, dh-systemd
Standards-Version: 3.9.6
XS-Ruby-Versions: all
......
......@@ -14,7 +14,7 @@
#export DH_RUBY_GEMSPEC=gem.gemspec
%:
dh $@ --buildsystem=ruby --with ruby
dh $@ --buildsystem=ruby --with ruby,systemd
override_dh_auto_build-indep:
$(MAKE) all
......
[Unit]
Description=Symbiosis monitoring
[Service]
Type=oneshot
ExecStart=/usr/sbin/symbiosis-monit
[Unit]
Description=Regularly execute symbiosis-monit.service
[Timer]
# run every 2 minutes
OnCalendar=* *-*-* *:00,02,04,06,08,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58:00
[Install]
WantedBy=timers.target
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment