Mladen Turk wrote:
-----Original Message-----
From: jean-frederic clere
Sorry I have missed my explainations:
The InitClass/StartupClass/Shutdown/DestroyClass should be methods of one class that provide the service.
Init must return after finishing (blocking).
Startup that is more complicated in the Daemon it returns and the threads are created inside the Startup method. But if we call a main it will not return... Shutdown must return. Destroy ... Well should also return and block.
Do we don't need to call both start classes, or just InitClass or StartupClass.
I think we need just one class and that class needs an Init and a Startup method.
Why? - has a service to be unblocking ?The problem is if we call the blocking first, that has to be in the separate thread,
I have ReportManager(SERVICE_START_PENDING) in my service code to prevent the "service control manager" deciding the service is not working.
so you don't know when that class has actually done it's initialization. But if we call only one of them inside the service, then we can in that case skip signaling when the init class finishes if it creates some threads and then returns. The class calling method doedn't need to be main. It can be any void method with String[] arguments.Basically do we need to call that (InitClass and StartupClass) from separate threads.InitClass?
2. What do you mean by changing the user after the call to
The idea is to make sure that a Web application is runned on non-privileged user (like httpd). The idea is that the OS should prevent "critical" file beeing modified or read in a Web application.
OK, but that's applicable only if the TC is started withouth JVM (--Java java).
Of course ;-)
We'll also need to create the user account for that like IUSR_HOSTNAME so that the service can run as LocalSystem, and redirected TC as that user. That restricted user account has to be created during TC installation, and behave like the account that launches IIS process. MT. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]