ivaneeo's blog

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

            BlogJava :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
            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) 評(píng)論(0)  編輯  收藏

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 吉安县| 宿迁市| 澎湖县| 拜泉县| 栾城县| 微博| 海林市| 永福县| 恩平市| 大余县| 湾仔区| 达日县| 星子县| 泊头市| 嘉义县| 陆河县| 民乐县| 徐闻县| 岳阳县| 旺苍县| 永德县| 图片| 板桥市| 浏阳市| 莱芜市| 乐亭县| 左贡县| 高碑店市| 陵川县| 达孜县| 金华市| 池州市| 聂拉木县| 仙桃市| 浮梁县| 嘉峪关市| 卢氏县| 安国市| 铁力市| 电白县| 内江市|