| 1234567891011121314151617181920212223242526272829303132 |
- #/bin/bash
- echo "[SOGOULOG] === Kill monitor Start === "
- MONITOR=sogoumonitor.sh
- ID=`ps -ef | grep "$MONITOR" | grep -v "$0" | grep -v "grep" | awk '{print $2}'`
- for id in $ID
- do
- echo "[SOGOULOG] === $MONITOR is running, Kill monitor === "
- kill -9 $id
- echo "[SOGOULOG] === Kill monitor Done === "
- done
- WEBSRV=sogouImeWebSrv
- ID=`ps -ef | grep "$WEBSRV" | grep -v "$0" | grep -v "grep" | awk '{print $2}'`
- for id in $ID
- do
- echo "[SOGOULOG] === $WEBSRV is running, Kill Service === "
- kill -9 $id
- echo "[SOGOULOG] === Kill sogouImeWebSrv Done === "
- done
- echo "[SOGOULOG] === Kill Service Start === "
- SOGOUIME=sogouImeService
- ID=`ps -ef | grep "$SOGOUIME" | grep -v "$0" | grep -v "grep" | awk '{print $2}'`
- for id in $ID
- do
- echo "[SOGOULOG] === $SOGOUIME is running, Kill Service === "
- kill -9 $id
- echo "[SOGOULOG] === Kill sogouImeService Done === "
- done
- echo "[SOGOULOG] === Kill Service Done === "
|