Reference URL: https://stackoverflow.com/questions/8127433/unable-to-run-a-service-command-via-cron
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
.Work around:
add " 2>&1" behind your crontab for those scripts you totally no idea how to handle "properly" in short time.
No comments:
Post a Comment