[RADIATOR] stale pidfile
Klara Mall
klara.mall at kit.edu
Sun Apr 10 18:14:57 CDT 2011
Hi,
I think it would be good if radiator would remove its pidfile before
shutting down. Init scripts could be misguided by a stale pidfile.
This would fix it:
--- a/radiusd
+++ b/radiusd
@@ -306,6 +306,11 @@
# Call the ShutdownHook, if there is one
$main::config->runHook('ShutdownHook');
&log($main::LOG_NOTICE, "SIGTERM received: stopping");
+ my $pidfile = &Radius::Util::format_special($main::config->{PidFile});
+ if ($pidfile ne '')
+ {
+ unlink $pidfile;
+ }
}
#####################################################################
Regards
Klara
--
Karlsruher Institut für Technologie (KIT)
Steinbuch Centre for Computing (SCC)
Klara Mall
Netze und Kommunikation (NET)
Hermann-von-Helmholtz-Platz 1
76344 Eggenstein-Leopoldshafen
Telefon: +49 721 608-28630
E-Mail: klara.mall at kit.edu
Web: http://www.scc.kit.edu
KIT - Universität des Landes Baden-Württemberg und
nationales Forschungszentrum in der Helmholtz-Gemeinschaft
More information about the radiator
mailing list