12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- #!/bin/sh
- ### BEGIN INIT INFO
- # Provides: reportquery
- # Required-Start: $local_fs $network
- # Required-Stop: $local_fs
- # Default-Start: 2 3 4 5
- # Default-Stop: 0 1 6
- # Short-Description: reportquery service
- # Description: console reportquery daemon
- ### END INIT INFO
- #
- # reportquery This shell script takes care of starting and stopping
- # the ipfcst-reportquery subsystem (reportquery).
- #
- # chkconfig: 345 64 36
- # description: ipfcst-reportquery.
- # processname: reportquery
- # Source function library.
- #. /etc/rc.d/init.d/functions
- # Source networking configuration.
- #. /etc/sysconfig/network
- # Support for extra options passed to reportquery
- command=$1 && shift
- extra_opts="$@"
- start(){
- sh /home/syjy/ipfcstV3/bin/start-reportquery.sh
- }
- stop(){
- sh /home/syjy/ipfcstV3/bin/stop-reportquery.sh
- }
- restart(){
- stop
- start
- }
- status(){
- sh /home/syjy/ipfcstV3/bin/status-reportquery.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 $?
|