On Thursday 04 March 2004 20:33, Daniel Perry wrote:
> Is there any way of finding out what is happening on shutdown (this is a
> remote server, so i dont get any screen output!)

It should be listed in /var/log/boot.log
Also, the phoenix script outputs to $PHOENIX_TMPDIR/phoenix.console, but I am 
not sure how that relates to James.


> I'm not sure what is happeneing, but i figure it must be calling the stop
> script, but for some reason it either isnt running properly, or it's
> getting killed before completing (does linux do this? is there a timelimit
> for stop calls?)

I know that there is none during startup, and assume shutdown is the same. 
Looking at the phoenix script, it is a two phased shutdown, send a  "kill 
SIGTERM" first, wait a while and then "kill SIGKILL", and the latter will 
just remove the process from memory without necassry letting it shutdown 
completely. In any event, the .pid file is removed by the script.
The phoenix script defaults to 5 second delay, prior to the SIGKILL, but can 
be set with the $PHOENIX_KILLDELAY variable.

Niclas

> Daniel.
>
> -----Original Message-----
> From: Niclas Hedhman [mailto:[EMAIL PROTECTED]
> Sent: 04 March 2004 12:16
> To: Avalon Developers List; Daniel Perry; James Users List
> Cc: Avalon Developers List
> Subject: Re: Checking PHOENIX_PID for validity
>
> On Thursday 04 March 2004 18:53, Daniel Perry wrote:
> > >>Sounds as if you down have it registered to be stopped during shutdown.
> >
> > Ok, that was my guess...
> > But again, being new to this, how do you do that? I thought having it
> > registered as a service, it would be done for me...
> >
> > [EMAIL PROTECTED] root]# chkconfig --list | grep james
> > james           0:off   1:off   2:off   3:on    4:on    5:on    6:off
>
> I am not sure which OS you are running, but the standard mechanism for
> startup
> and shutdown under System V is that you have a "initi.d" directory
> containing
> the script itself, which understand "start" and "stop" argument.
> Then there is a "rcN.d" containing the symbolic link to the
> "init.d/phoenix-server.sh", and is "prepended" with an "Sxx" or a "Kxx".
>
> N stands for the RunLevel, and those are slightly different on each OS. On
> my
> Linux 3 is for Multiuser text mode, and 5 is for MultiUser X Desktop and 6
> for shutdown.
>
> xx is a number to control the order in which things are started or
> shutdown.
>
> So you look through the existing list and figure out how soon or how late
> in the sequence it must start or stop.
>
> So you do something like;
>
> ln -s /etc/init.d/phoenix-server.sh /etc/rc3.d/S95phoenix.sh
> ln -s /etc/init.d/phoenix-server.sh /etc/rc5.d/S95phoenix.sh
> ln -s /etc/init.d/phoenix-server.sh /etc/rc6.d/K10phoenix.sh
>
> I hope this helps.
>
> Niclas
> --
> +---------//-------------------+
>
> |   http://www.bali.ac         |
> |  http://niclas.hedhman.org   |
>
> +------//----------------------+

-- 
+---------//-------------------+
|   http://www.bali.ac         |
|  http://niclas.hedhman.org   |
+------//----------------------+

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to