From b34c8a0924b5a66ccf13d553cce47b9d53e0efd3 Mon Sep 17 00:00:00 2001 From: Cameron Norman Date: Mon, 12 May 2014 00:43:54 -0700 Subject: [PATCH] Add Upstart job. --- docs/monitorix.upstart | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 docs/monitorix.upstart diff --git a/docs/monitorix.upstart b/docs/monitorix.upstart new file mode 100644 index 0000000..b54ebdc --- /dev/null +++ b/docs/monitorix.upstart @@ -0,0 +1,11 @@ +description "Monitorix - system monitoring service" +author "Cameron Norman " + +start on filesystem +stop on runlevel [016] + +expect fork +respawn + +pre-start exec test -x /usr/bin/monitorix || { stop; exit 0; } +exec /usr/bin/monitorix -c /etc/monitorix/monitorix.conf