daemon script

stillRunning=$(ps -ef |grep usa-console |grep -v "grep") if [ "$stillRunning" != "" ] ; then echo "[`date +%y-%m-%d-%H:%M:%S`] service was already started" >> guard.log else echo "[`date +%y-%m-%d-%H:%M:%S`] service was not started and restart now" >> guard.log sh /home/admin/usa-console/bin/appctl.sh restart >> guard.log fi

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325021746&siteId=291194637