亚洲免费乱码视频,日韩 欧美 国产 动漫 一区,97在线观看免费视频播国产,中文字幕亚洲图片

      1. <legend id="ppnor"></legend>

      2. 
        
        <sup id="ppnor"><input id="ppnor"></input></sup>
        <s id="ppnor"></s>

        shell 服務(wù)狀態(tài)監(jiān)控

        字號:


            #!/bin/sh
            DBSTAT=`ps -ef|grep 'postmaster'|grep -v 'grep'`
            if [ "$DBSTAT" == "" ];
            then
            echo "DB down"
            DBstus=`ps -ef|grep 'postmaster'|grep -v 'grep'`
            while [ "$DBstus" == "" ];
            do
            if ["$DBstus" == ""];
            then
            echo "DB starting ..."
            /etc/init.d/postgresql start
            DBstus=`ps -ef|grep 'postmaster'|grep -v 'grep'`
            else
            echo "PostgreSQL already running! "
            fi
            done
            else
            echo "DB running"
            fi