← Back to team overview

rapache-devel team mailing list archive

[Bug 241033] Re: Show apache status and start/stop controls

 

I can help with threading

a couple of things,

you must init the threading modal
# Turn on threading
gtk.gdk.threads_init()

If you want to update the UI from a thread you must lock the gtk thread
gtk.gdk.threads_enter()
input_name.set_text("example")
gtk.gdk.threads_leave()


# Thread handler
def threaded(f):
	def wrapper(*args):
		t = threading.Thread(target=f, args=args)
		t.setDaemon(True) # wont keep app alive
		t.start()
	return wrapper

@threaded
def test_thread():
        while True:
               print "threaded"          
               time.sleep(1)

-- 
Show apache status and start/stop controls
https://bugs.launchpad.net/bugs/241033
You received this bug notification because you are a member of Rapache
Developers, which is subscribed to Remote Apache Management tool .

Status in rapache: Confirmed

Bug description:
It would be nice to be able to see if the apache server is (still) running and control that with rapache. At Windows you've got the Apache monitor. It would be great if similar functionality would also be implemented in Rapache. This would include these features:
-View of current server status
-Stop/start/reload control
-Be able to control more servers(this is probably something for stage 2/3)



References