From 7dd03af4608316f2e3431f602772cd38812d3d81 Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Tue, 11 Mar 2014 09:28:17 +0100 Subject: [PATCH] updated init scripts to reflect the new configuration directory '/etc/monitorix/' --- docs/monitorix-deb.init | 2 +- docs/monitorix.init | 4 ++-- docs/monitorix.service | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/monitorix-deb.init b/docs/monitorix-deb.init index a120af5..82ab57f 100755 --- a/docs/monitorix-deb.init +++ b/docs/monitorix-deb.init @@ -14,7 +14,7 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="Monitorix" NAME="monitorix" -CONF="/etc/monitorix.conf" +CONF="/etc/monitorix/monitorix.conf" DAEMON="/usr/bin/$NAME" PIDFILE="/var/run/$NAME.pid" LOCKFILE="/var/lock/$NAME" diff --git a/docs/monitorix.init b/docs/monitorix.init index 8ef13ff..4f294f1 100755 --- a/docs/monitorix.init +++ b/docs/monitorix.init @@ -7,7 +7,7 @@ # chkconfig: 2345 99 10 # description: Monitorix is a lightweight system monitoring tool # processname: monitorix -# config: /etc/monitorix.conf +# config: /etc/monitorix/monitorix.conf # pidfile: /var/run/monitorix.pid ### BEGIN INIT INFO @@ -33,7 +33,7 @@ RETVAL=0 PROG="monitorix" DAEMON="/usr/bin/monitorix" PIDFILE="/var/run/monitorix.pid" -CONF="/etc/monitorix.conf" +CONF="/etc/monitorix/monitorix.conf" start() { if [ ! -f /var/lock/subsys/$PROG ] ; then diff --git a/docs/monitorix.service b/docs/monitorix.service index 88aa4c8..11d8762 100644 --- a/docs/monitorix.service +++ b/docs/monitorix.service @@ -6,7 +6,7 @@ Wants=local-fs.target [Service] Type=forking EnvironmentFile=-/etc/sysconfig/monitorix -ExecStart=/usr/bin/monitorix -c /etc/monitorix.conf -p /run/monitorix.pid +ExecStart=/usr/bin/monitorix -c /etc/monitorix/monitorix.conf -p /run/monitorix.pid PIDFile=/run/monitorix.pid [Install]