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

Francesco Delfino pluto@tipic.com
Tue, 19 Nov 2002 14:57:49 +0100


Hi,
I think that we should also focusing on something more close as possible to
a windows service (e.g. it automatically starts as system boots, it
interfaces with an administration console and so on...), so that to re-use
(almost) the same installation/setup programs on Mono and on Windows.
As a company producing windows service applications and wanting to open to
mono, we have two main requirements:
- to write the administration console of a service (low pri, since MS has
not yet released a full .NET implementation of the MMC)
- to register a service in the system (high pri)
Regarding the second point, I think that a demon in Linux, with the same
behaviour as a service on windows, can be realized creating a startup script
in /etc/init.d and the corresponding links under the /etc/rc* directories.
But we still have two different options:
- register only one process in /etc/init.d, which will then execute all
"mono" services
- manage every mono service with a different script
At a first sight, the first approach will avoid to deal with different
distributions filesystem organizations, but will have the main disadvantage
to rewrite daemon administration tools to deal with "mono daemons".
But the second approach could make your /etc/init.d directory full of lots
of scripts, and the process dependency structure will not be the same as in
Windows, too (where processes are prioritized using a tree-like structure,
rather than a list-like structure as in Linux).
So, what is the best way to resemble a windows services?

--
Regards,
  Francesco Delfino
  Tipic Inc. - Advanced Instant Messaging Platforms
  visit: http://www.tipic.com
  e-mail & Jabber: pluto@tipic.com
  blog: http://www.tipic.com/blog/pluto@tipic.com

"Miguel de Icaza" <miguel@ximian.com> wrote in message
news:1037708043.2416.171.camel@erandi.boston.ximian.com...
> Hello,
>
> > The really cool thing would be if you or someone else implemented the
> > service-stuff from windows for mono and then you could use that.
>
> Yes, we do need in fact someone with Windows experience to actually
> implement the Windows versions of those classes.  The Unix case should
> be relatively trivial.
>
> Paolo has expressed his interest in the past in having a Mono.Posix.dll
> which would provide us with direct access to the Unix API, raw, without
> the .NET framework wrapping.  Together with some utility classes and
> functions
>
> Miguel.
>
> _______________________________________________
> Mono-list maillist  -  Mono-list@ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.408 / Virus Database: 230 - Release Date: 24/10/2002