[Mono-list] Re: RE: Writing daemons in C#

Mathias Hasselmann mathias.hasselmann@gmx.de
Tue, 19 Nov 2002 15:37:12 +0100


Francesco Delfino wrote:

 > - to register a service in the system (high pri)
 > So, what is the best way to resemble a windows services?

don't have an opinion yet, but let's list some arguments:

SysV initscripts (aka. /etc/init.d):

    + most natural for many _Linux_ distri
    + simple implementation:
	* mainly an exercise in calling "chkconfig"
	* only one script (and symlinks on it) would be needed
            since "$0" could provide enough information to figure out
            which service to start
    - far too much Unices and Linux distri sill refuse to use SysV
      initscripts (for ... reasons)
    - don't know how to map Unix runlevels into the NT service API.
    - SysV doesn't offer automatic dependency resolution
    - not registry to store service configuration

NT-Service daemon:

    + can as compatible as needed
    + would also work for BSD-like Unices
    - more work to do [1]
    - could offense some evanglists [2]


1) Hmm... Didn't you mention to have a company in you back?
2) Well, the entire Mono project is offensive for those evanglists -
     so what. Let's prepare for a long walk. ;-)


Ciao,
Mathias