sersync起动/停止脚本

sersync启动/停止脚本#! /bin/bash##sersyncd#. /etc/rc.d/init.d/functionscase $1 instart)cd /usr/lo

sersync启动/停止脚本

#! /bin/bash  #  #sersyncd  #  . /etc/rc.d/init.d/functions  case "$1" in         start)         cd /usr/local/sersync         ./sersync2 -r -d          if [ $? -eq 0 ]                  then                   echo -e "Staring sersyncd      [  OK  ]"                 exit 0          fi          ;;          stop)          kill 'ps aux | grep sersync2 | grep -v grep | awk '{print $2}''          if [ $? -eq 0 ]                 then                   echo -e "Stopping sersyncd     [  OK  ]"                 exit 0          fi          ;;         status)          ps aux | grep sersync2 | grep -v grep          ;;  esac 

?