mono-service

How do I code a Mono Daemon

I'm trying to write a Mono C# daemon for linux. I'd like to do a starts and stops of it when its done processing instead of just killing the process. Does anyone have any examples of this? Edit: I figured out how to use start-stop-daemon --background in debian, so I think I'll just use that for now. Edit: I'm implementing this in jav...

using mono-service to wrap a windows service on linux

Hi I'm trying to use mono-service2 to run a stock Windows Service Project from visual studio. I'm running this on debian with mono 2.0 and compiling with. gmcs *.cs -pkg:dotnet I try and start with this (I've tried with -d set to the dir with the app and -n,-m set) mono-service2 -l:service.lock --debug Program.exe The only code cha...

mono-service on windows

I have inherited an application that uses mono that runs a windows service. All of the original developers are gone. The production version uses mono on linux. I am trying to get a development environment up and running. I decided to use windows as the base platform running mono up top of it. Ok maybe not the best idea given my current ...

mono-service command line arguments

So basically, I've created a windows service that I'm not porting to linux and mono. Everything is working great except I can't figure out how to send command line arguments to a windows service that I'm starting with mono-service(2). I'm hoping I can pick up command line arguments in OnStart(string[] args) of my service, but no luck so...

mono-service2 loops on exit running on mac osx 10.5

I have a C# service that needs to run on Windows and Mac. I created a separate project for the mac accessing the common code to handle any differences, and it sets a define for the code to use. I then copy the Visual Studio compiled .exe to the mac machine. The service runs OK, except that when I kill the process the iMac CPU goes to ...

Success with start-stop-daemon and mono-service2?

Has anyone had any success using start-stop-daemon and mono-service2 together? I've been fighting this for a few days now and have gotten various bits to work, but have had no success in getting a fully functional init script for a mono service. Here is what I have learned to date: The mono or mono-service exe must be named as the va...