humer2000
asked on
IIS6.0 - what's the command line to restard a site ?
hi
i need the command line that restart a site/service under IIS 6
i need the command line that restart a site/service under IIS 6
Good try but not quite right.
If you stop inetinfo and then start inetinfo the w3svc (World Wide Web Publishing Service) will *not* be started and none of your sites will work.
To restart the web services on the machine from the command line use the 'iisreset' command. This will stop all the web services and then restart them all.
There is no simple command line utility to stop/start a site, but you can determine which w3wp.exe process is serving which application pool by running 'iisapp'. If you shut down the w3wp.exe serving an application pool any sites running in that app pool will be shut down until the next time a request comes in.
Dave Dietz
If you stop inetinfo and then start inetinfo the w3svc (World Wide Web Publishing Service) will *not* be started and none of your sites will work.
To restart the web services on the machine from the command line use the 'iisreset' command. This will stop all the web services and then restart them all.
There is no simple command line utility to stop/start a site, but you can determine which w3wp.exe process is serving which application pool by running 'iisapp'. If you shut down the w3wp.exe serving an application pool any sites running in that app pool will be shut down until the next time a request comes in.
Dave Dietz
ASKER
i need something new guys
i knwo already all what you wrote
i can't run iisapp because the application i am installing cannot do several thing
it must restart the specific site or kill it's pool process
i knwo already all what you wrote
i can't run iisapp because the application i am installing cannot do several thing
it must restart the specific site or kill it's pool process
ASKER
solution is here
http://www.motobit.com/help/webcheck/library.htm
http://www.motobit.com/help/webcheck/library.htm
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
net start inetinfo
That will stop and start the IIS service. For an individual site, you could find the PID of the worker process and do a net stop/start on it.
-BR