Ignore:
Timestamp:
Jun 5, 2011, 6:49:02 AM (11 years ago)
Author:
adehnert
Message:
Actually write to the log file
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/fedora/config/etc/cron.daily/num-crontabs

    r1869 r1870  
    33numcrontabs=$(ls -1 /var/spool/cron | wc -l)
    44if [ $numcrontabs -lt 100 ] && [ $numcrontabs -gt 0 ]; then
    5     logger -s -p cron.warn -t cron "$(hostname --fqdn) has $numcrontabs files in /var/spool/cron and should have none or hundreds."
     5    msg="$(hostname --fqdn) has $numcrontabs files in /var/spool/cron and should have none or hundreds."
     6    logger -u /dev/log -p cron.warning -t cron "$msg"
     7    echo "$msg"
    68fi
Note: See TracChangeset for help on using the changeset viewer.