(RADIATOR) Shutdown in a Hook
Frank Danielson
fdanielson at csky.com
Mon Jan 5 12:49:59 CST 2004
How about using-
kill '1',$$
or if you are in a hurry-
kill '9',$$
Using kill 1 should allow Radiator to execute any shutdown hooks you have
and otherwise exit normally.
-Frank
-----Original Message-----
From: Jerome Fleury [mailto:jeje at jeje.org]
Sent: Monday, January 05, 2004 12:16 PM
To: radiator at open.com.au
Subject: (RADIATOR) Shutdown in a Hook
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 ?
Thanks!
--
Jerome Fleury
===
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.
===
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