(RADIATOR) radmon.sh does not restart radiator when run as cronjob
Hugh Irvine
hugh at open.com.au
Tue Oct 2 17:50:19 CDT 2001
Hello Andrew -
What is "radmon.sh"?
In any case, I suspect there is something missing in the environment when the
script is run as the user that cron runs as. Either that or permissions
problems for the same reason.
BTW - we provide a tool called "restartWrapper" for this purpose (in the
goodies directory).
regards
Hugh
On Tuesday 02 October 2001 22:14, Andrew Kaplan wrote:
> 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.
--
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows 95/98/2000, NT, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
===
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