[Mono-list] c# written daemon, System.ServiceProcess, posix signals handling...
Jérôme Laban
jlaban@wanadoo.fr
Sun, 18 Apr 2004 14:19:52 +0200
Hi robert,
I've mangaged to find a solution to this problem a while ago in my project :
http://www.sf.net/projects/sharp-igd
I used remoting and some filesystem trick to achieve the same results. Right
now, the latest code does not run since it was built against some of mono
0.29's bugs :) Anyway, the idea is there.
Hope this helps :)
--
Jérome Laban
{Epitech.}
http://www.labtech.epitech.net
> -----Original Message-----
> From: mono-list-admin@lists.ximian.com
> [mailto:mono-list-admin@lists.ximian.com] On Behalf Of Robert Remen
> Sent: vendredi 16 avril 2004 10:09
> To: mono-list@lists.ximian.com
> Subject: [Mono-list] c# written daemon,
> System.ServiceProcess, posix signals handling...
>
> Hi!
>
> I need to write an application in c#, wich should run in
> background and be able to shut down gracefully when required.
> The best solution would be to use the System.ServiceProcess
> namespace, but this namespace is not implemented in mono. I
> know that there were some discussion about this topic in
> summer 2003, but since i found nothing. Is there something
> new in this direction?
> The other way (not so nice, but would also do the job) would
> be the catching of posix signals (SIGINT, SIGTERM...) but i
> have no idea how to do thin in an mono application.
> The last solution is to use some selfmade communication
> mechnism, to comunicate with the process and initiate the
> shutdow - maybe using remoting or some simpler mechanism.
> Can someone give me some infos or ideas for the solution?
>
> Thanx
>
> Robert
> _______________________________________________
> Mono-list maillist - Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>