I can't get radmon.sh to restart radiator when run as a cronjob. The script
runs correctly from a command line. Yet when run as a cronjob it fails to
restart radiator. It sends email so I know the script is run. I'm using
Debian 2.2
>>>>>>>>>>>>>>>>>>>>
!/bin/sh
HOSTNAME=`hostname`
ADMIN="[EMAIL PROTECTED]"
/bin/ps axwwww | grep radiusd | grep -v "grep" > /dev/null 2>&1
if [ $? -eq 0 ]; then
:
else
/etc/init.d/radiator restart > /dev/null 2>&1
echo "Radius restarted on Mozart" | Mail -s "Radius for ${HOSTNAME}
rest
arted!" ${ADMIN}
fi
~
~
Andrew P. Kaplan
Network Administrator
CyberShore, Inc.
http://www.cshore.com
"I couldn't give him advice in business and he couldn't give me
advice in technology." --Linus Torvalds, about why he wouldn't
be interested in meeting Bill Gates.
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.