Re: How to restart a Windows' service from a Web app?

Darian Shimy <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <F7BC2FD707C3D3118C8800508B6F997D0A8AFBE9@24hrsdexch2.24hourfit.com>
You can try Runtime.getRuntime().exec("net stop w3svc");


> -----Original Message-----
> From: Luca Ventura [mailto:[email protected]]
> Sent: Friday, March 28, 2003 12:04 AM
> To: [email protected]
> Subject: How to restart a Windows' service from a Web app?
>
>
> Hello everybody!
>
> I have installed IIS as Web Server and Tomcat 4.1.16 LE as
> plug-in of IIS to
> mangage Servlet/JSP pages (using isapi filter JK2
> "isapi_redirector.dll"). I
> would like to know is there is some way to re-start a Windows' service
> (including Tomcat!) using
> some web application  acessible  from the Internet to avoid to use the
> "Services Panel" of Windows
> (I installed Win 2000 Advanced Server as operating system).
> In fact it can happen I am not able to access remotely to the
> server machine (using PCAnywhere for example): so I would like to be
> able to re-start any Windows' service (for example it can
> happen that some
> service hangs up and I need to re-start it) I need using some Web
> application. How can I do? Is it possibile
> to do this using some web app based on Java technology (Servlet/JSP)?
>
> Thanks everybody in advance!
>
>                                                    Luca
>
> ______________________________________________________________
> _____________
> To unsubscribe, send email to [email protected] and
> include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
> http://java.sun.com/products/servlet/external-> resources.html
>
> LISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.