Need help in using JSVC daemon!

Page 1 of 1

7 Replies - 236 Views - Last Post: 03 July 2012 - 08:23 PM Rate Topic: -----

#1 saravanataee  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 29-June 12

Need help in using JSVC daemon!

Posted 03 July 2012 - 02:46 AM

Dear all,
I have been trying to understand and implement this JSVC daemon,but nothing worked out. I just want to monitor a linux program's status uing java. I came to know that, its possible only through jsvc. But, still i havent get any idea on how to work with that.

Can anyone help me in that.. A real time example please!!
Is This A Good Question/Topic? 0
  • +

Replies To: Need help in using JSVC daemon!

#2 g00se  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2675
  • View blog
  • Posts: 11,305
  • Joined: 20-September 08

Re: Need help in using JSVC daemon!

Posted 03 July 2012 - 03:13 AM

Quote

I just want to monitor a linux program's status


You need to say precisely what you mean by that. And which program btw?
Was This Post Helpful? 0
  • +
  • -

#3 saravanataee  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 29-June 12

Re: Need help in using JSVC daemon!

Posted 03 July 2012 - 03:19 AM

Hi,
For eg: any application like eclipse or netbean is running in a linux system. I just want to remotely monitor it i.e will be able to start,stop and report back his health.. all this i should be able to do from my system to a remote system.
Was This Post Helpful? 0
  • +
  • -

#4 g00se  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2675
  • View blog
  • Posts: 11,305
  • Joined: 20-September 08

Re: Need help in using JSVC daemon!

Posted 03 July 2012 - 03:33 AM

That's quite tricky actually. Firstly, if the system is remote, you're going to need to get a remote shell to it. I suggest you do some investigation into that first. e.g

http://www.jcraft.com/jsch/
Was This Post Helpful? 0
  • +
  • -

#5 saravanataee  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 29-June 12

Re: Need help in using JSVC daemon!

Posted 03 July 2012 - 03:43 AM

Oh, okay.
At first can you tell how can i do such monitoring in local system. So, that it will be helpful to think about remote procedure. I don't know how to do with local system's even. No idea.

Please help!!
Was This Post Helpful? 0
  • +
  • -

#6 g00se  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2675
  • View blog
  • Posts: 11,305
  • Joined: 20-September 08

Re: Need help in using JSVC daemon!

Posted 03 July 2012 - 11:50 AM

Are these running processes always to be started by your app?
Was This Post Helpful? 0
  • +
  • -

#7 saravanataee  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 29-June 12

Re: Need help in using JSVC daemon!

Posted 03 July 2012 - 08:18 PM

Hi,
No, not a running process. My app should be able to start an application and able to stop it.!
Was This Post Helpful? 0
  • +
  • -

#8 GunnerInc  Icon User is offline

  • "Hurry up and wait"
  • member icon




Reputation: 858
  • View blog
  • Posts: 2,279
  • Joined: 28-March 11

Re: Need help in using JSVC daemon!

Posted 03 July 2012 - 08:23 PM

We are not a code writing service. What have you tried? Have you tried coding anything? If not, give it a shot! You might even find it fun and you will learn something.

*** Edit ***
Scratch most of that. This is your third topic on this and you have not shown any code on your part. You had two Mentors in this thread giving you good advice.

*** Closed ***
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1