Bug#590290: Cron job and script
Jaap Winius
jwinius at umrk.nl
Thu Sep 2 14:19:34 UTC 2010
To be sure, the associated cron job statement is very simple:
56 00 * * * /usr/local/bin/system-state
The latter is a bash shell script meant to gather information about
the machine and write it to a file. The relevant lines are:
#!/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
DATE="/bin/date +%Y%m%d"
HOSTNAME=`/bin/cat /etc/hostname`
HSC=/root/system-state_$HOSTNAME-`$DATE`.txt
if [ -f /sbin/lvdisplay ]; then
lvdisplay >> $HSC
fi
exit 0
As far as the output of this script is concerned, I have no
complaints. The only problem is the fd leak error.
More information about the pkg-lvm-maintainers
mailing list