[Mono-bugs] [Bug 74189][Wis] New - Mod_mono control panel
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 29 Mar 2005 12:21:21 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by tauberer@for.net.
http://bugzilla.ximian.com/show_bug.cgi?id=74189
--- shadow/74189 2005-03-29 12:21:21.000000000 -0500
+++ shadow/74189.tmp.7839 2005-03-29 12:21:21.000000000 -0500
@@ -0,0 +1,63 @@
+Bug#: 74189
+Product: Mono: Tools
+Version: 1.0
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: mod_mono
+AssignedTo: gonzalo@ximian.com
+ReportedBy: tauberer@for.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Mod_mono control panel
+
+Date: Sun, 20 Feb 2005 09:15:32 -0500
+From: Joshua Tauberer <tauberer@for.net>
+To: "mono-devel-list@lists.ximian.com" <mono-devel-list@lists.ximian.com>
+Subject: Mod_mono control panel
+
+Good morning, guys. Hacking is a nice way to start the day.
+
+After upgrading to 1.0.6/1.1.4, I found that after I "killall mono" to
+restart mod-mono-server, mod_mono no longer restarts mod-mono-server on
+the next request. I think this is by design, right?
+
+Since I rely on mod_mono to start mod-mono-server, I needed a way to
+restart mod-mono-server without restarting all of Apache. Rather that
+writing a script to figure out what user/group mod-mono-server is
+running under and what command line arguments to give it, I created a
+really simple control panel within mod_mono.
+
+It creates a new Apache handler for mono-ctrl and displays an HTML
+control panel page for requests it handles. Following the one link on
+the page causes mod_mono to terminate all mod-mono-servers it spawned
+(exactly as in the normal termination process), and after terminating
+each one and waiting one second it calls fork_mod_mono_server to restart it.
+
+To use it, add:
+
+<Location /mono/>
+ SetHandler mono-ctrl
+</Location>
+
+And add the appropriate access controls to prevent the world from being
+able to restart your mod-mono-servers.
+
+I'm not sure if there are any memory management issues to be aware of
+with forking the server a second time. This might be a good place to
+put in some status information, or reporting error messages if there are
+permissions problems with the socket, etc.
+
+The patch is attached. Comments?
+
+--
+- Joshua Tauberer
+
+http://taubz.for.net
+
+** Nothing Unreal Exists **