On Tuesday, November 26, 2002, at 11:55  AM, Jeremy Schwartz wrote:

I am trying to rotate my Apache logs using Cron and the following shell
script:

# /bin/sh

mv /var/log/httpd/access_log /users/admin/logs/
apachectl restart

This script is set to 755 and is being executed by the root crontab. The
first line is executing correctly, the log file is moving out of
/var/log/httpd/ to /users/admin/logs/ but apache is not restarting.

My first guess is that apachectl is not in the path for the script.
Try putting in the full path for apachectl.

If that still doesn't work, have you checked the error log for apache
to see if it's dying on startup??




--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to