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"
|
DESC="Monitorix"
|
||||||
NAME="monitorix"
|
NAME="monitorix"
|
||||||
CONF="/etc/monitorix.conf"
|
CONF="/etc/monitorix/monitorix.conf"
|
||||||
DAEMON="/usr/bin/$NAME"
|
DAEMON="/usr/bin/$NAME"
|
||||||
PIDFILE="/var/run/$NAME.pid"
|
PIDFILE="/var/run/$NAME.pid"
|
||||||
LOCKFILE="/var/lock/$NAME"
|
LOCKFILE="/var/lock/$NAME"
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# chkconfig: 2345 99 10
|
# chkconfig: 2345 99 10
|
||||||
# description: Monitorix is a lightweight system monitoring tool
|
# description: Monitorix is a lightweight system monitoring tool
|
||||||
# processname: monitorix
|
# processname: monitorix
|
||||||
# config: /etc/monitorix.conf
|
# config: /etc/monitorix/monitorix.conf
|
||||||
# pidfile: /var/run/monitorix.pid
|
# pidfile: /var/run/monitorix.pid
|
||||||
|
|
||||||
### BEGIN INIT INFO
|
### BEGIN INIT INFO
|
||||||
|
@ -33,7 +33,7 @@ RETVAL=0
|
||||||
PROG="monitorix"
|
PROG="monitorix"
|
||||||
DAEMON="/usr/bin/monitorix"
|
DAEMON="/usr/bin/monitorix"
|
||||||
PIDFILE="/var/run/monitorix.pid"
|
PIDFILE="/var/run/monitorix.pid"
|
||||||
CONF="/etc/monitorix.conf"
|
CONF="/etc/monitorix/monitorix.conf"
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
if [ ! -f /var/lock/subsys/$PROG ] ; then
|
if [ ! -f /var/lock/subsys/$PROG ] ; then
|
||||||
|
|
|
@ -6,7 +6,7 @@ Wants=local-fs.target
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
EnvironmentFile=-/etc/sysconfig/monitorix
|
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
|
PIDFile=/run/monitorix.pid
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
Loading…
Reference in New Issue