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