--
You received this message because you are subscribed to the Google Groups "topshelf-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topshelf-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Dru, thanks for your reply, any help would be very much appreciated.
The service I inherited was originally written in C# in Visual Studio as a Windows service before events dictated we needed to port it to run on Linux.
I installed a Mono Develop tool (XamarinStudio v5.10.1) and Mono for Windows (v3.2.3) onto a Windows box and the VS solution loaded in and runs ok in Run and Debug mode.
I then built and installed Mono for Linux (v4.4.0) from source code onto a RHEL box and copied the executable and dlls over and tried running using:
mono <servicename>.exe
I don’t know if I’m supposed to use the ‘mono-service’ command to somehow ‘install the service’ like on windows?
And I’ve seen mention somewhere of a switch in the code something like ‘IsThisALinuxBox’. Is that a TopShelf call I need do you think as you said it appears to be calling windows code?
Dru,
This blog describes Linux hosting a TopShelf service using TopShelf.Linux nuget package and calling UseLinuxIfAvailable()
http://blog.amosti.net/self-hosted-http-service-in-c-with-nancy-and-topshelf/
Does this look like a solution to my issue do you think?