On Wed, 12 Mar 2003 13:35:33 -0500, John Deighan <[EMAIL PROTECTED]>
wrote:

>I have a service, that I've created with PerlSvc. Occasionally, it doesn't 
>start up correctly after a reboot, and I suspect that it's because it 
>accesses a database, and the database server may not have started 
>completely when my service is started. Under Windows, one service can be 
>"dependent" on another service, so that services are started in the 
>required order. However, the PerlSvc documentation gives no way for me to 
>specify such dependency relationships, and the Services control panel, 
>though it will display such relationships if they exist, doesn't seem to 
>allow me to specify such a dependency. Does anyone know how to do that?

You can add a *value* named "DependOnService" under

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\YOURSERVICE

It seems to normally be a REG_MULTI_SZ type value, but maybe it works with
a normal REG_SZ value too; you may want to try it.

I've added an enhancement request to the PDK bug database for letting
PerlSvc handle this for you:

    http://bugs.activestate.com/PerlDevKit/show_bug.cgi?id=23669

Cheers,
-Jan

PS:  Please send PDK related questions to the PDK mailing list!
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to