[Mono-list] Service or daemon with Mono?

Danny dgortonii at gmail.com
Tue Jul 14 15:47:17 EDT 2009

I'd like to second that.  I use the same techniques with good results. 
However, *occasionally* I have problems with my remoting listener 
holding open the TCP socket after shutdown (in which I unregister the 
marshalled object(s)).

If you don't mind me asking, do you do anything specific or special to 
clean up your remoting channel?

Amc Gmail wrote:
> We don't have any problems with .NET service running under Mono. 
> It's based on ServiceBase, uses EventLog and .NET Remoting without any problems.
> All you need to do is to create init.d script to start/stop mono-service during startup/shutdown
> -- amc
> ----- Original Message -----
> From: "jos_" <junk at sonhult.se>
> To: mono-list at lists.ximian.com
> Sent: Tuesday, July 14, 2009 8:45:07 AM GMT -05:00 US/Canada Eastern
> Subject: [Mono-list]  Service or daemon with Mono?
> Hello,
> What is the recommended way to write a service-like software in Mono?
> My first guess would be to use the normal class ServiceBase existing in Mono
> (and .NET of course). But there seems to be little information on how this
> works with Mono, and from what I've read it is not considered stable (?).
> 1. Is it better to just create a normal app, turn on automatic login and run
> it at login?
> 2. Is it possible to create a daemon using Mono?
> 3. Is there any documentation on how to "install" the "service" if developed
> in Mono using ServiceBase (or any other method)?
> In short: I'm looking for a way to build the Linux equivalent for a service
> using Mono, and install it on a Linux-dist =)
> Thanks in advance!
> / Jonas

More information about the Mono-list mailing list