[Xitami] Running Xitami as a service under Win9x
Brian {Hamilton Kelly}
xitami@lists.xitami.org
Fri, 08 Jun 2001 11:19:49 GMT
In message <42119@dsl.co.uk>
bhk@dsl.co.uk (Brian {Hamilton Kelly}) writes:
> Then later, I saw that there IS a mention of running it as a Service
> under Win9x, oddly enough on the downloads page (I didn't read any
> further having once identified the package that I [thought] I wanted:-)
>
> So today I fetched the console version, which has of course been updated
> since my FTP session of last week, so I got bc3224d9.exe. According to
> the installation description "The Xitami console version installation
> package asks whether you want to install it as a Win95 service". SFAICS,
> it did NOT ask this question; neither did it create "a small dispatcher,
> called "C:\Services.bat" which simply changes to the Xitami directory and
> then runs Xitami".
>
> Has the installation procedure been botched since those words were
> written? Or has this part never been written after all?
>
> Can I manually create the requisite batch file, and install the registry
> key manually (I'm quite happy with registry hacking)?
Sadly, I've seen no response to this query :-(
In the interim, I've written a batch file [C:\Xitami\Service.bat] of my
own, containing:
C:
cd \Xitami
XiDOS32 -s
and have edited the relevant [...\RunServices] registry key to have an
additional entry:
"Xitami" = "C:\Xitami\Service.bat"
This works OK originally: the HTTP server starts running about the same
time as the "Login to Domain" dialogue box appears on the screen. (I had
to edit the job's properties so that it started minimized, rather than
having a blobby-great DOS-box on the screen.)
The service continues to work happily also after a user has logged in for
the first time. However, when that user elects to "Start -> Shutdown ->
Close all programs and log in as a different user" then the server
process also gets killed.
This isn't really very useful; surely after having been started with the
-s switch[1] the process ought not to be a candidate for killing off on
user "logout"?
I'm suspecting that we shall have to revert to the bw (Windows version)
and just be content with its being started through the Run key for each
login, and then not have the user logout.
> As an extension, would it be possible to start the iASP admin and servlet
> processes from within the same batch file as well?
Any information and hints on this aspect would also be appreciated; with
these Java processes, one *can't* logout without running the associated
"Stop" programs.
[1] Yes, it is lower-case, and yes, the box reports "Moving into background".
--
Brian {Hamilton Kelly} bhk@dsl.co.uk
"We have gone from a world of concentrated knowledge and wisdom to one of
distributed ignorance. And we know and understand less while being incr-
easingly capable." Prof. Peter Cochrane, formerly of BT Labs