当我试图运行Ubuntu11.04服务器时
service powernap stop作为根用户的cron作业,它会失败,并在syslog中给出以下消息。
NAS CRON[10853]: (CRON) error (grandchild #10854 failed with exit status 2)这是通过电子邮件发送给根用户电子邮件帐户。
exec: 129: stop: not found我可以从命令行启动和停止powernap服务,那么为什么它不能在cron上工作呢?
发布于 2011-07-05 20:54:53
嗯.奇怪的是cron想要跑“停”..。
试着让cron运行以下命令:
sh -c '/usr/sbin/service powernap stop'https://askubuntu.com/questions/51914
复制相似问题