mirror of
https://github.com/pstadler/metrics.sh.git
synced 2025-05-05 08:46:39 -04:00
update init.d script
This commit is contained in:
parent
bbe0266175
commit
251c0ea56f
@ -1,14 +1,14 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
### BEGIN INIT INFO
|
### BEGIN INIT INFO
|
||||||
# Provides: sysmetrics
|
# Provides: metrics.sh
|
||||||
# Required-Start: $remote_fs $syslog
|
# Required-Start: $remote_fs $syslog
|
||||||
# Required-Stop: $remote_fs $syslog
|
# Required-Stop: $remote_fs $syslog
|
||||||
# Should-Start: $network
|
# Should-Start: $network
|
||||||
# Should-Stop: $network
|
# Should-Stop: $network
|
||||||
# Default-Start: 2 3 4 5
|
# Default-Start: 2 3 4 5
|
||||||
# Default-Stop: 0 1 6
|
# Default-Stop: 0 1 6
|
||||||
# Short-Description: Start and stop sysmetrics
|
# Short-Description: Start and stop metrics.sh
|
||||||
# Description: Controls the main sysmetrics daemon "sysmetricsd.sh"
|
# Description: Controls the metrics daemon "metrics.sh"
|
||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
|
|
||||||
# Author: Patrick Stadler <patrick.stadler@gmail.com
|
# Author: Patrick Stadler <patrick.stadler@gmail.com
|
||||||
@ -17,9 +17,9 @@
|
|||||||
|
|
||||||
# PATH should only include /usr/* if it runs after the mountnfs.sh script
|
# PATH should only include /usr/* if it runs after the mountnfs.sh script
|
||||||
PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
||||||
DESC="Collect and forward system metrics"
|
DESC="Collect and report system metrics"
|
||||||
NAME=sysmon-stathat
|
NAME=metrics.sh
|
||||||
DAEMON=/usr/sbin/$NAME
|
DAEMON=/usr/bin/$NAME
|
||||||
DAEMON_ARGS=""
|
DAEMON_ARGS=""
|
||||||
PIDFILE=/var/run/$NAME.pid
|
PIDFILE=/var/run/$NAME.pid
|
||||||
SCRIPTNAME=/etc/init.d/$NAME
|
SCRIPTNAME=/etc/init.d/$NAME
|
Loading…
x
Reference in New Issue
Block a user