>By the way, you didn't mention restarting the
> service. Does
> the script manage this, too?

If your IIS crashes, it probably will not respond if you simply try to
restart it. The service does not usually just stop. It is basically locked
up by bad code. The best thing to do is to kill the inetinfo.exe process and
then start it.

John Cesta

ColdFusion ASP ActiveState PERL Hosting
---------------------
Includes 10 Domains
100% Browser Based Administration
--------------------------------------------
         http://www.cybersmarts.net
--------------------------------------------

SearchItPRO - IIS LogFile Management Tool
      -------------------------------
    http://www.serverautomationtools.com



> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of The
> Musar Corporation
> Sent: Thursday, January 18, 2001 12:13 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: killing & restarting IIS
>
>
> Hi Stanley,
>
> Thanks for responding.
>
> If the script will do the desired kill & restart trick for IIS, I would
> like to see it. By the way, you didn't mention restarting the
> service. Does
> the script manage this, too?
>
> Thank you.
>
> Tim
>
>
> At 11:07 AM 1/18/01 -0600, you wrote:
> >I have a script that shuts down services using Win32::Lanman and
> if it has
> >problems shutting down the service it finds out what process
> it's running on
> >and then kills that process.  The Win32 module has a
> SystemShutdown function
> >that I've used for quite some time now with no problem. I'll
> send you what I
> >use if needed. I'm currently not in the office where I could send that to
> you.
> >
> >> Hello World,
> >>
> >> This is related to my earlier posts called "a reboot script".
> Someone has
> >> suggested simply killing the offending process and restarting it rather
> >> than a full system reboot. I've modified the script to accommodate this
> >> good suggestion.
> >>
> >> I'm still having trouble, however, finding the proper syntax
> for the kill
> >> and restart portion of the script.
> >>
> >> My current script is....
> >>
> >>
> >> # www_service_test.pl
> >>
> >> use LWP::Simple;
> >>
> >> $url = "http://www.musar.com/echo.html";
> >> $content = get($url);
> >>
> >> if ($content) {
> >>       Exit;
> >> }
> >>
> >> elsif (!$content) {
> >>       $notice = "www_service_test.txt";
> >>       `Blat $notice -s "WWW Service Notice" -f info\@musar.com -t
> >info\@musar.com`;
> >>       # KILL inetinfo.exe;
> >>       # NET START W3SVC;
> >> }
> >>
> >> # End
> >>
> >>
> >> The lines that have been commented out are where I am at a lost.
> >>
> >> Thank you.
> >>
> >> Tim
> >>
> >>
> >>
> >> _______________________________________________
> >> Perl-Win32-Web mailing list
> >> [EMAIL PROTECTED]
> >> http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web
> >
> >
>
> _______________________________________________
> Perl-Win32-Web mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web
>

_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to