Support for starting/stopping application from linux command line using mono-service.exe

Allows user to start application using mono-service.exe and have proper start/stop behavior.
Ok, I know see what you mean, and why this new execution path is being triggered on your case. Let me review this tomorrow using a sample service, etc. but actually this makes sense. ;)

What I am curious is:  Actually we run our processed under mono-service.exe, like: /usr/bin/mono-sgen --gc=sgen /usr/lib/mono/4.5/mono-service.exe -d:/opt/SomeThing.Server -l:/var/run/SomeThing.Server.pid /opt/SomeThing.Server/SomeThing.Server.exe.. And the service starts, stops, and works just fine.

I understand you catch some case where you need/want to have IsRunningAsAService as true, right? I have no objection, as the actual code was no more than a hack/workaround from mono bugs from when we started with this thing.. and if this is working right now, this is surelly the way to go. ;)