(RADIATOR) Shutdown in a Hook
Matthew Trout
matthewtrout at businessserve.co.uk
Mon Jan 5 12:09:27 CST 2004
On Mon, Jan 05, 2004 at 06:16:17PM +0100, Jerome Fleury wrote:
> Hello there,
>
> under certain conditions, I would like Radiator to shutdown itself inside a hook. I tried:
>
> if ($@) {
> &main::log($main::LOG_ERROR, " (jeje) cannot recreate data structures from \"$config_file\":
> $@. Exiting.") if $@;
> close CONF;
> &main::shutdown();
> }
>
> the log prints:
>
> Mon Jan 5 18:16:59 2004: NOTICE: SIGTERM received: stopping
>
> But the server doesn't really stop. It's still alive.
>
> Any idea someone ?
system('kill', '-9', $$);
--
Bring me my etherkiller; Oh clouds unfold! / Bring me the magic smoke of desire
I shall not cease from mental fight / Nor shall my LART rest in my hand
Till we have buried the bodies / Of all the lusers in all this land
-- rpg, ASR [ My homepage is http://www.trout.me.uk/ ]
===
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