Just to add to the pool of ideas, here are some discussions on the topic:<br>
<a href="http://ask.slashdot.org/article.pl?sid=04/02/05/2331259&tid=156&tid=130&tid=4">http://ask.slashdot.org/article.pl?sid=04/02/05/2331259&tid=156&tid=130&tid=4</a><br>
<a href="http://developers.slashdot.org/article.pl?sid=03/10/02/1553253&tid=8&tid=106">http://developers.slashdot.org/article.pl?sid=03/10/02/1553253&tid=8&tid=106</a><br>
<br><br><div><span class="gmail_quote">On 11/16/05, <b class="gmail_sendername">Dimi Paun</b> <<a href="mailto:dimi@lattica.com">dimi@lattica.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Folks,<br><br>Since we are discussing a new init replacement, I think<br>we should consider a good API for it too, so that it services<br>can be controlled programmatically. At the very least, we<br>need to be able to:<br>
  * start/stop/reload/restart a service<br>  * query its status<br>  * wait for a service to start/stop<br>  * a way for services to interact with the administrators<br>    (for example to ask for passphrases, etc.)<br>  * a way to signal problems (probably D-BUS bases)
<br><br>I know this is blasphemy, but how about we start (at least<br>for inspiration) with the Services API from Win32:<br><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/service_functions.asp">
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/service_functions.asp</a><br><br>For more info about Win32 services:<br><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/services.asp">
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/services.asp</a><br><br>At the very least looking at other APIs will tell us:<br>  * what we need to cover<br>  * what we should avoid<br><br>What other APIs are out there? Does Sun have one?
<br><br>--<br>Dimi Paun <<a href="mailto:dimi@lattica.com">dimi@lattica.com</a>><br>Lattica, Inc.<br><br>--<br>fedora-devel-list mailing list<br><a href="mailto:fedora-devel-list@redhat.com">fedora-devel-list@redhat.com
</a><br><a href="https://www.redhat.com/mailman/listinfo/fedora-devel-list">https://www.redhat.com/mailman/listinfo/fedora-devel-list</a><br></blockquote></div><br><br clear="all"><br>-- <br>As a boy I jumped through Windows, as a man I play with Penguins.