Wrinting .NET deamons with mono. Hi mono hackers.
To support .NET daemon�s with mono we need an extra software package. Actually we have two ideas for this problem. 1) High Integration with SysV daemon structure: each mono service is a different SysV daemon. See Mathias previous post for an analysis of this option. 2) A unique SysV process which will be the MONO.SCM: each mono service will be managed by these process. My posted idea for this problem. I have another simple idea. This is a combination of the both for Linux or other UNIX�s. First we have a daemon starter to support the System.Service.ServiceBase .NET class. The starter did nothing else than reading the name of the service and manage the different methods (e.g. OnStart, OnShutdown, OnPowerEvent, CanShutdown and so on. ) These starter is used like any SysV process. A litte config.xml file is given as parameter. Like Monodaemonstarter <config.xml> The config file has information about the service like the NT service manager. ( e.g. RunAs information, depends on, recovery rules ). To manage extra information we need an extra daemon that manage the start sequence and implement an interface for the ServiceController class. With this extra daemon we can also handle the �net start� or �net stop� commands with the .NET service name. Every instance of the monodaemonstarter gives this central instance his information. Without the central instance ( perhaps called mono::SCM ) no starter can run. In the first step developer or system admins must type a init.d script to install the service. Later we can implement an mono service deploy to install an service like the ServiceProcessInstaller. OK I hope you could understand my twisted cogitations.. But I think we are on the right way.. PS : Did anybody now something about new methods an classes for services in .NET 1.1??? By Kai� -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr f�r 1 ct/ Min. surfen! _______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
