pruiz / Topshelf.Linux

Topshelf extensions allowing compatibility with mono/linux.
Apache License 2.0
41 stars 14 forks source link

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

Closed RyanMelenaNoesis closed 9 years ago

RyanMelenaNoesis commented 9 years ago

Allows user to start application using mono-service.exe and have proper start/stop behavior.

pruiz commented 9 years ago

Hi,

I am surelly missing something here, as we are actually running services using mono-service right now. :?

What's exactly your issue here, just in case we might find an alternate solution?

RyanMelenaNoesis commented 9 years ago

The main issue was that previous to this patch, it was only possible to run a TopShelf service as a console app under linux (even when utilizing mono-service.exe as a wrapper). When the app is run as a console app under linux, stopping the application does not execute OnStop actions defined in TopShelf. By allowing the application to run as a service under linux (which this patch should only do when utilizing mono-service.exe as a wrapper) we enable the proper OnStop functionality.

pruiz commented 9 years ago

Great addition, thnks!