PDA

View Full Version : Running a Service Executable from a Network Path


Marcio Ferreira
April 29th 04, 07:50 PM
Hi all,
I'm not sure this is correct group to discuss this, but I need to be sure
that the problem is not a bad administration practice I adopted in this
case...

I wrote a simple Win32 service that was placed into a shared directory - at
each machine the service was configured to get its executable from that
server.

Using SC.EXE the Service should be configured as:
sc create "MyService" binpath= \\server\share\mysvc.exe obj= DOMAIN\Admin
password= mypwd

It works pretty well in almost cases... but at some Windows XP machines,
when the service is set to run automatically, the boot process locks during
several minutes.
Logging my executable I could see that ServiceMain function is called only
after the boot lock is finished.

Does anyone has experience in putting a service executable on a server
share??

Tks, Marcio

Google