xusl il y a 1 an
Parent
commit
08b14b7131

+ 10 - 0
ipfcst/syjy/ipfcstV3/settings/console

@@ -1,4 +1,14 @@
 #!/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).

+ 0 - 75
ipfcst/syjy/ipfcstV3/settings/monitor

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

+ 0 - 12
ipfcst/syjy/ipfcstV3/settings/monitor.service

@@ -1,12 +0,0 @@
-[Unit]
-Description=ipfcst-monitor
-After=network.target
-
-[Service]
-Type=forking
-ExecStart=/home/syjy/ipfcstV3/bin/start-monitor.sh
-ExecStop=/home/syjy/ipfcstV3/bin/stop-monitor.sh
-ExecRestart=/home/syjy/ipfcstV3/bin/restart-monitor.sh
-
-[Install]
-WantedBy=multi-user.target

+ 10 - 0
ipfcst/syjy/ipfcstV3/settings/reportquery

@@ -1,4 +1,14 @@
 #!/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).