ivaneeo's blog

          自由的力量,自由的生活。

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            669 Posts :: 0 Stories :: 64 Comments :: 0 Trackbacks

          #!/bin/sh

          #

          # Startup script for ovirt-agent

          #

          # chkconfig: 2345 85 20

          # description: ovirt-agent

          # processname: ovirt-agent

          # pidfile: /var/run/tomcat.pid # config:# Source function library.

          . /etc/rc.d/init.d/functions

          # Source networking configuration.

          . /etc/sysconfig/network

          # Check that networking is up.

          export OVIRT_AGENT_HOME=/opt/ovirt-agent

          [ -f $OVIRT_AGENT_HOME/bin/startServer.sh ] ||?exit 0 [ -f $OVIRT_AGENT_HOME/bin/stopServer.sh ] ||?exit 0

          # See how we were called.

          case "$1" in

          start)

          # Start daemon.

                  echo ?"Starting OVirt-agent: "

                  $OVIRT_AGENT_HOME/bin/startServer.sh $OVIRT_AGENT_HOME/conf/ovirt-agent.xml

                  touch /var/lock/subsys/ovirt-agent

          ;;

          stop)

          # Stop daemons.

                  echo ?"Shutting down OVirt-agent: "

                  $OVIRT_AGENT_HOME/bin/stopServer.sh

                  rm -f /var/lock/subsys/ovirt-agent

          ;;

          restart)

                  $0 stop

                  $0 start

          ;;

          status)

          status ovirt-agent

          ;;

          *)

          echo "Usage: $0 {start|stop|restart|status}"

          exit 1

          esac

          exit 0

          posted on 2015-07-03 20:06 ivaneeo 閱讀(1897) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 平江县| 济南市| 太仓市| 会宁县| 阜康市| 德保县| 甘泉县| 乌拉特后旗| 镇巴县| 隆德县| 同仁县| 宽甸| 特克斯县| 呼和浩特市| 容城县| 定兴县| 遵义市| 海门市| 酉阳| 龙川县| 嘉兴市| 盘锦市| 巩留县| 赣州市| 澄城县| 松原市| 乌什县| 安远县| 勐海县| 大同市| 潞西市| 藁城市| 佛冈县| 精河县| 邮箱| 西藏| 都兰县| 尼勒克县| 贺兰县| 陇南市| 井冈山市|