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...
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...
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 ...
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...
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 ...
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...