Hello everyone,
   I have a very general question that I can't seem to
find an answer to.  I have a perl script that monitors
network servers using WMI.  I have the actual checks
in a flat config files and when I startup the perl
script it reads in each line of the config file and
and puts each check in a forked process.  Each forked
process then sleeps for a period of time and then
wakes up runs the the check and repeats.  This period
of time can be as long as an hour or as short as every
10 seconds.  Right now I have my script running as a
win32::daemon service...now onto the real problem.  If
I add/edit/delete a check in the flat config file,  I
need to restart the perl script, this is where my
problem is.  I have a button on a webpage that says
"restart", this restart sends a "stop" message to the
Service Mangaer.  I then have a snippet of code that
runs whenever a forked process is about to wake
up...this checks to see if the Service Manager has
been sent a shutdown command...if so then I stop and
start the script.  This all works fine, but it may
take up to an hour for my snippet of code to run,
because the script only runs when a forked process
wakes up.  I should also mention that it takes about 2
minutes for the win32::daemon to stop the service,
which I feel is way to long and I can't figure out why
it is taking so long to cleanup all the forked
processes.  I would like to hear if anyone has any
ideas on a better way for me to load the changes that
happen to the flat config files.

Sorry for being long winded....

Thanks in advance -- Ken

__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to