[Xitami] RE: Stopping and restarting (or resetting) Xitamiwithperl
Francis Turner
francis.turner at gmail.com
Wed Jan 4 20:49:43 CET 2006
Pieter, there are I think two separte problems that are trying to be solved
problem one - the one where you recommend using kill.exe is for when
you believe Xitami is dead.
problem two - which is where I'm proposing the perl script is for when
you want to prod Yitami to reload its config because you have
(programatically) added some more VHOSTS or similar. In this case you
know Xitami is actually alive so you don't want to kill it in the
middle of doing something
Francis
On 1/4/06, Pieter Hintjens <ph at imatix.com> wrote:
> On 1/4/06, Francis Turner <francis.turner at gmail.com> wrote:
>
> > If you look at the /admin page there seems to be a fairly simple way
> > to cause the server to reset (or halt).
>
> The problem here is that if the server has died, that's not going to work.
>
> What we generally do - on Linux, but the same works on Win32 - is to
> monitor the process continuously from a script that runs on the same
> box as the server, using wget, and if the server fails to respond
> within a second, kill it and then restart it.
>
> Under win32, you can stop/restart the server by using the server
> manager (net stop / net start), but since the net stop command needs
> the server to respond, I'd suggest using kill.exe.
>
> You can do this in Perl but it's really not worth it, it's just a few
> lines of batch commands.
>
> -Pieter Hintjens
>
>
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>
--
http://www.di2.nu/blog.htm
Faber's Fourth Law:
Necessity is the mother of strange bedfellows.
More information about the Xitami
mailing list