Unable to run a service command via cron

前端 未结 1 808
夕颜
夕颜 2020-12-09 01:21
service service_name start

When i tried running this from cmd line, it works. But when i try to schedule it via cron, i get an error saying

<
相关标签:
1条回答
  • 2020-12-09 01:53

    sbin is not in the path when run via cron. Specify the full path to service. This is probably either /sbin/service or /usr/sbin/service. You can find the path on your system by running which service.

    0 讨论(0)
提交回复
热议问题