Error when running a script with cron.

Wipe_Out wipe_out at users.sourceforge.net
Tue Jul 12 22:02:09 UTC 2011


Hi,

I have written a basic bash script to stop and restart xinetd as part of a
cleanup routine for a server we run.. When run from a prompt it runs
perfectly.. I have scheduled it to run every night as a cron job and every
night I get an email with the following error..

/etc/init.d/xinetd: 75: start-stop-daemon: not found
/etc/init.d/xinetd: 75: start-stop-daemon: not found

I can't figure out why..

Can anyone give me any ideas??

The script is simply..

#!/bin/bash
eval "service xinetd stop"
sleep 5
< run cleaup commands >
sleep 5
eval "service xinetd start"
exit

Thanks for any thoughts..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110712/1c4161d4/attachment.html>


More information about the ubuntu-users mailing list