Mladen Turk wrote:

-----Original Message-----
From: jean-frederic clere [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 6:48 PM
To: Tomcat Developers List
Subject: Re: Need review -- WIN32 procrun



It's jakarta-commons-sandbox/component_name, actually.
As JF proposed, I would see it in
jakarta-commons-sandbox/daemon/src/native/nt/procrun


It will be but... :(.

**** Access denied: Insufficient Karma
(mturk|jakarta-commons-sandbox/daemon/src/native/nt/procrun/)



BTW, be sure to include the binaries in the CVS (yes, I know it's
against the rules, but they happen to be impossible to
build without
VC++, so I can't integrate in the build process).
I will try to get it build with cygwin. (at home ;-)).


The mingw32 builds that (I've tested it with DevC++). You'll need to
change the intptr_t to int *, and of course add the -lshlwapi and
-DPROCRUN_CONSOLE


Should we add #ifdef CYGWIN in the source?


It would be nice to have --InitClass and --DestroyClass options so that the BootstrapService of catalina can be used.


It has:
--StartupClass -> called when hit Service start.
--ShutdownClass -> called when you hit Stop service...
The idea is the following:
--InitClass -> called when starting
Change user to a non-privileged user (like nobody/nodoby I have seen something like that in cygwin so that must also exist in win32 API).
--StartupClass -> really start the service.
--ShutdownClass -> shutdown the service (something like a suspend).
--DestroyClass -> cleanup.


MT.




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

Reply via email to