(RADIATOR) radmon.sh does not restart radiator when run as cronjob

Andrew Kaplan noc at cshore.com
Tue Oct 2 07:14:44 CDT 2001


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="emergency at cshore.com"


/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 radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list