From: mono-devel-list-boun...@lists.ximian.com [mailto:mono-devel-list-
boun...@lists.ximian.com] On Behalf Of Paul McEwan
Thanks, the mono-service tool is working well so far
Glad it's working for you. I never had any luck with mono-service and
mono-service2. What we did, instead, was to
Thanks, that's working well so far
On Thu, Jun 11, 2015 at 5:00 PM, Slide slide.o@gmail.com wrote:
Mono has mono-service2 that you can use to wrap a Windows service on *nix
to become a daemon that you can issue start and stop commands to like most
daemons.
On Thu, Jun 11, 2015 at 1:50
Thanks, the mono-service tool is working well so far
On Thu, Jun 11, 2015 at 5:01 PM, Oskar Berggren oskar.bergg...@gmail.com
wrote:
You can use the mono-service tool to start the application through the
ServiceBase class, as in Windows.
But ServiceBase or not, typically you would enter some
Mono has mono-service2 that you can use to wrap a Windows service on *nix
to become a daemon that you can issue start and stop commands to like most
daemons.
On Thu, Jun 11, 2015 at 1:50 PM Paul McEwan paul.mce...@atlium.com wrote:
I have a Windows Service that I converted to Mono. What's the
I have a Windows Service that I converted to Mono. What's the recommended
way to keep it running in the background like a Windows Service -- i.e. you
start it and it keeps running until you stop it?
Should you just put a loop in the main thread that sleeps and wakes up
every second and performs
You can use the mono-service tool to start the application through the
ServiceBase class, as in Windows.
But ServiceBase or not, typically you would enter some sort of mainloop.
Most services will _wait_ for something to happen and not wake up until it
does. High-frequency timer-based polling
Turn an exe into a daemon:
http://serverfault.com/questions/135859/is-there-a-standard-way-to-make-daemon-in-debian
To keep it idle, I'd suggest using Task objects, with a lambda for each
task with the work in it. They'll run on the thread pool. Then your main
thread should just sleep until a