views:

64

answers:

1

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

A: 

See http://stackoverflow.com/questions/458674/passing-a-windows-service-parameters-for-it-to-act-on

Sijin
I could do it in windows and .NET using ServiceController like your link shows, I'm wondering how I can accomplish the same thing in Mono using (or not using for all I care) mono-service2
LorenVS