updated init scripts to reflect the new configuration directory '/etc/monitorix/'

This commit is contained in:
Jordi Sanfeliu 2014-03-11 09:28:17 +01:00
parent 1525d12534
commit 7dd03af460
3 changed files with 4 additions and 4 deletions

View File

@ -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"

View File

@ -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

View File

@ -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]