Cron errors - bash (after awstats logrotate)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I installed AWSTATS (after some recommendations here on the list). Great app. When configuring the log rotate update, the example httpd script wasn't exact. Now I'm getting the following errors: Any thoughts? Bash is in /bin.

### The Error msg:

Subject: Cron <root@utah> root run-parts /etc/cron.hourly
X-Cron-Env: <SHELL=/bin/bash>
X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin>
X-Cron-Env: <MAILTO=root>
X-Cron-Env: <HOME=/>
X-Cron-Env: <LOGNAME=root>

/bin/bash: line 1: root: command not found

### My crontab

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
0 * * * * cd /home/kberrien/seti; ./setiathome -nice 19 > /dev/null 2> /dev/null
*/5 * * * * cacti php /var/www/html/cacti/cmd.php > /dev/null 2>&1
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=x.homelinux.net


### And my logrotate.d/httpd

/var/log/httpd/*log {
missingok
notifempty
sharedscripts
sharedscripts (##I just removed this duyplicate)
prerotate
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=berrien.homeli
nux.net
endscript
postrotate
/bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
endscript
}




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux