cron执行service

在Cron的环境下,是没有定义路径的,所以,service xxx start等等要使用绝对路径 =》 /sbin/service xxx start 

service的路径可以用whereis service找到

原文地址:https://www.cnblogs.com/trying/p/3179140.html