update init.d script

This commit is contained in:
Patrick Stadler 2015-03-12 21:26:00 +01:00
parent bbe0266175
commit 251c0ea56f

View File

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