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:[EMAIL PROTECTED]
Sent: Monday, January 05, 2004 12:16 PM
To: [EMAIL PROTECTED]
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\":
[EMAIL PROTECTED] 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 [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to