From: Michael A. P. <mp...@ma...> - 2001-10-07 11:15:07
|
Update- My patch that I posted earlier breass the bootup and shutdown module (init) Now I understand webmin a *tad* bit better- I'll be submitting a new patch to the init module that will allow editing of both the rc script (which breaks with my current redefine of the config-macos file) and editing of the /etc/hostconfig file- as the /etc/hostconfig file is largely where daemons (such as apache and sendmail etc.) are configured to start (or not start) at system boot on Darwin/OS X. What I would like to do actually with /etc/hostconfig is not display it in a text edit field (I have that working now) but instead a table displaying the contents with links for the setting- selecting the link would then bring up a page that allows one to edit that setting, and edit any StartupItems script ( in /System/Library/StartupItems or /Library/StartupItems - I have to check and make sure those are the only locations where settings in /etc/hostconfig have a bootup effect) that uses the defined setting in /etc/hostconfig. So, for example, someone could select the WEBSERVER=-NO- and be brought to a page where they could change the -NO- to a -YES-, as well as edit /System/Library/StartupItems/Apache/Apache to change apachectl start to apachectl startssl (of course- they would need a ssl aware apache, but you get the point ;) Hopefully I'll get that done this week. Is there a cvs version I should be patching against (since I'll be editing /init/index.cgi )? I guess it won't matter too much since all I'll be doing is adding an elsif () { block } and not modifying anything else. -=- Also, when this is done, I'd like to try to write a NetInfo module, one that clones the functionallity of NetInfo Manager in the OS X gui. Is anybody already working on that sort of thing? Perhaps a NetInfo module would make it easier to port the Users and Groups module to function on Darwin... On Tue, 02 Oct 2001 10:00:09 PDT "Michael A. Peters" <mp...@ma...> wrote: > I have a few patches I'd like to submit. > > Webmin fails to properly start at system boot on OS X 10.1 > The problem is that apple appends an "exit 0" at the end of the rc script. > > Thus, along comes webmin, and puts its startup line after the exit 0 > I'm sure you can see the problem... > > Anyway, what I did was patch webmin to instead of using /etc/rc to launch *snip* -- -=-=-=-=-=-=-=-=-=-=-=-=- Michael A. Peters http://24.5.29.77:10080/ |