LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How to remotely control a windows service? (https://www.linuxquestions.org/questions/programming-9/how-to-remotely-control-a-windows-service-845491/)

philipina 11-20-2010 06:37 AM

How to remotely control a windows service?
 
Hello,

I have a java application running under Linux (Suse). My application communicates with a windows service via TCP/IP. I had multiple cases where the windows service crashed and I'm wondering if in such case there is any Linux or java tool I could use to remotely restart this Windows service.


Thanks in advance for your help,

Alain

quanta 11-20-2010 07:57 AM

Take a look at Nagios. You can monitor a remote Windows service with NSClient++ addon and restart if it die via the check_nrpe.

paulsm4 11-20-2010 11:12 AM

Or just do:
Code:

  Runtime.exec ("net start ..")


All times are GMT -5. The time now is 02:16 AM.