Last change
on this file since 1869 was
1869,
checked in by adehnert, 13 years ago
|
Script to report crontabs not being on the primary
|
-
Property svn:executable set to
*
|
File size:
251 bytes
|
Rev | Line | |
---|
[1869] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | numcrontabs=$(ls -1 /var/spool/cron | wc -l) |
---|
| 4 | if [ $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." |
---|
| 6 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.