Win32 - Dependant servicesby Smaug (Pilgrim)
|on Oct 21, 2004 at 10:45 UTC
Smaug has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to stop and start MSSQL on a windows server. From the usual console I can click on the "Restart" button and it will stop all dependant services and then stop MSSQL - after that it restarts all the services again and starts MSSQL. Great!
I need to do this in a Perl script but I can not find a module with a "RestartService" method. I have searched on Google too.
Currently I read through the registry and extract the service names and the DependOnService key out and so do it that way.
I was wondering if there is a module to do this that might make my code a little more efficient?
Thanks yet again in advance!