[RADIATOR] radiator shutdown on reload

Michael ringo at vianet.ca
Fri Jun 3 10:47:57 CDT 2011




On Fri, 3 Jun 2011, Heikki Vatiainen wrote:

> On 06/02/2011 11:56 PM, Michael wrote:
>
>> I just had an issue with radiator shutting down.  I added another
>> Handler to my config.  I keep them in separate files, and use an
>> include to include that given file.  I typo'd the file location, and
>> when I reloaded the config, the service shut down.  I have an HA
>> environment where I sync the config to 4 redundant radiator systems
>> and they all reload upon new config.  So, all 4 services shut down.
>> Boy was I sweating.
>>
>> Does radiator not use the current running configuration if a reload
>> fails to process the config files?
>
> It does not. Fortunately this problem is also logged during startup. In
> other words, what you experienced is how Radiator works.
>
> You also need to be careful to close each <Handler>, <AuthBy> and other
> clauses. Not closing these with a matching </Handler> etc. can cause the
> parser to incorrectly interpret the configuration file without noticing
> any errors.

The error i created was only a typo in an include statement filename.  so, 
the only error is really a 'file not found' type error.  i wouldn't think 
this would be reason enough to shut down.

Also, there is nothing in my log about the error.  The only time i seen 
the error was on the cli when trying to start radiator back up again.  It 
would be nice if radiator didn't shut down on error, but if it must, i 
would think the last line in the log would be why it shut down.

I guess since it can't parse the config during the startup, it doesn't 
know where/how to log, so the best time to log such an error is before it 
shuts down, while it still has config of where the log file is.

>
> Heikki
>
> -- 
> Heikki Vatiainen <hvn at open.com.au>
>
> Radiator: the most portable, flexible and configurable RADIUS server
> anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
> Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS,
> TTLS, PEAP, TNC, WiMAX, RSA, Vasco, Yubikey, MOTP, HOTP, TOTP,
> DIAMETER etc. Full source on Unix, Windows, MacOSX, Solaris, VMS,
> NetWare etc.
>


More information about the radiator mailing list