source: trunk/server/fedora/config/etc/cron.daily/num-crontabs @ 1870

Last change on this file since 1870 was 1870, checked in by adehnert, 13 years ago
Actually write to the log file
  • Property svn:executable set to *
File size: 294 bytes
RevLine 
[1869]1#!/bin/sh
2
3numcrontabs=$(ls -1 /var/spool/cron | wc -l)
4if [ $numcrontabs -lt 100 ] && [ $numcrontabs -gt 0 ]; then
[1870]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"
[1869]8fi
Note: See TracBrowser for help on using the repository browser.