crond检查服务状态

代码如下:

    * */1 * * * /etc/init.d/ntpd status;if [ $? -ne 0 ];then /etc/init.d/ntpd start; fi
posted @ 2017-08-14 13:43  bamboo233  阅读(483)  评论(0编辑  收藏  举报