|
@@ -1,75 +0,0 @@
|
|
|
-#!/bin/sh
|
|
|
-#
|
|
|
-# monitor This shell script takes care of starting and stopping
|
|
|
-# the ipfcst-monitor subsystem (monitor).
|
|
|
-#
|
|
|
-# chkconfig: 345 64 36
|
|
|
-# description: ipfcst-monitor.
|
|
|
-# processname: monitor
|
|
|
-
|
|
|
-# Source function library.
|
|
|
-#. /etc/rc.d/init.d/functions
|
|
|
-
|
|
|
-# Source networking configuration.
|
|
|
-#. /etc/sysconfig/network
|
|
|
-
|
|
|
-# Support for extra options passed to monitor
|
|
|
-command=$1 && shift
|
|
|
-extra_opts="$@"
|
|
|
-
|
|
|
-start(){
|
|
|
- sh /home/syjy/ipfcstV3/bin/start-monitor.sh
|
|
|
-}
|
|
|
-
|
|
|
-stop(){
|
|
|
- sh /home/syjy/ipfcstV3/bin/stop-monitor.sh
|
|
|
-}
|
|
|
-
|
|
|
-restart(){
|
|
|
- stop
|
|
|
- start
|
|
|
-}
|
|
|
-
|
|
|
-status(){
|
|
|
- sh /home/syjy/ipfcstV3/bin/status-monitor.sh
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-# See how we were called.
|
|
|
-case "$command" in
|
|
|
- start)
|
|
|
- start
|
|
|
- ;;
|
|
|
- startup)
|
|
|
- start
|
|
|
- ;;
|
|
|
- stop)
|
|
|
- stop
|
|
|
- ;;
|
|
|
- shutdown)
|
|
|
- stop
|
|
|
- ;;
|
|
|
- status)
|
|
|
- status
|
|
|
- ;;
|
|
|
- state)
|
|
|
- status
|
|
|
- ;;
|
|
|
- restart)
|
|
|
- restart
|
|
|
- ;;
|
|
|
- restartup)
|
|
|
- restart
|
|
|
- ;;
|
|
|
- reload)
|
|
|
- exit 3
|
|
|
- ;;
|
|
|
- force-reload)
|
|
|
- restart
|
|
|
- ;;
|
|
|
- *)
|
|
|
- echo $"Usage: $0 {start|startup|stop|shutdown|status|state|restart|restartup|reload|force-reload}"
|
|
|
- exit 2
|
|
|
-esac
|
|
|
-
|
|
|
-exit $?
|