2

I have a few processes I need to run in deamon mode, I just discovered upstart so I am starting to use it.


Are there any python libraries or applications that I could use to monitor and control these processes from an html interface?

I'm asking as I would like to prevent myself from reinventing the wheel. :)


Any ideas?

RadiantHex
  • 24,907
  • 47
  • 148
  • 244
  • 2
    Please explain the programming portion of this question, as I must be missing it. If it doesn't have one, perhaps ask it on either http://ubuntu.stackexchange.com or http://linux.stackexchange.com – Oded Dec 28 '10 at 13:45
  • There are some, but be aware that controlling processes, in a secure way, from a web interface is tricky. The web server typically runs as non-root, and won't be able to to control most other processes. – Keith Dec 29 '10 at 08:25

3 Answers3

10

I think psutil is what you are looking for.

Prasad Khode
  • 6,602
  • 11
  • 44
  • 59
Ant
  • 5,151
  • 2
  • 26
  • 43
9

Supervisor is pretty awesome. I haven't used the web interface though, it might suck.

Lennart Regebro
  • 167,292
  • 41
  • 224
  • 251
  • 1
    +1 Supervisor is great. The webinterface was pretty from what I can remember. One could easily write another one and use XML-RPC to control supervisor, if it didn't suffice. – plundra Dec 28 '10 at 15:21
0

you can also try circus.

Cheers Laidback

laidback
  • 545
  • 4
  • 16