Click here to get back home

Win32::Service Determining which are set to start automatically

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Win32::Service Determining which are set to start automatically Lee W 07-12-2004
Posted by Lee W on July 12, 2004, 10:14 am
Please log in for more thread options
Hi everyone,

I am trying to write a script that checks to make sure all services that
are set to start automatically are running. If they are not I want to
try to restart them and report an error otherwise.

The problem I am having is that I cannot find a way to deferentiate
between and service that is set to start automatically and one that is
manually set to start.

Using Win32::Service::GetStatus() seems to return '4' when the service
is running and '1' when the service is stopped. These values don't seem
to change if I set to something to start automatically or manually they
only seem to take into account the current status.

Is there away to determine if a service is supposed to startup
automatically?

Thanks in Advance

Lee


Similar ThreadsPosted
hiding Win32::SerialPort->start( ... ) error messages April 19, 2005, 2:27 am
LWP::UserAgent - determining source of response code September 15, 2004, 4:35 pm
lib/$archname not included automatically on RedHat box May 2, 2006, 9:26 pm
Looking for a base module that can automatically load sub modules June 27, 2007, 6:16 am
Using HTTPS with LWP::UserAgent = Bad Service March 30, 2005, 6:45 am
How to get service logon user January 31, 2006, 9:36 am
how to read email automatically without POP3 and IMAP servers in perl? December 13, 2004, 1:06 pm
SOAP::Lite with large web service payloads January 10, 2006, 12:42 pm
SOAP::Lite - is Barnes and Noble web service still active? July 6, 2007, 9:36 am
Start server for test ? May 16, 2005, 12:52 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap