I am trying to write a Mono C # daemon for Linux.
I would like to start and stop it when I finished processing, and not just kill 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'm just using it now.
Edit: I implement this in java too, and they have this nice addShutdownHook that catches application termination. I need to spend a little more time sorting dependencies for monoservice or find a way to catch the end of the application.
There is a SessionEnd event, but this is available only for services, not console applications.
Answer: using monoservice to port a Windows service to Linux
c # linux mono daemon mono-service
Scott Cowan Oct 09 '08 at 9:12 2008-10-09 09:12
source share