mirror of https://github.com/mikaku/Monitorix.git
updated init scripts to reflect the new configuration directory '/etc/monitorix/'
This commit is contained in:
parent
1525d12534
commit
7dd03af460
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue