在Cron的环境下,是没有定义路径的,所以,service xxx start等等要使用绝对路径 =》 /sbin/service xxx start
service的路径可以用whereis service找到
在Cron的环境下,是没有定义路径的,所以,service xxx start等等要使用绝对路径 =》 /sbin/service xxx start
service的路径可以用whereis service找到
转载于:https://my.oschina.net/ifeixiang/blog/339420