[Mono-dev] Mono-Service2 queries which one is good mono-service2 or simple app with UnixSignal.WaitAny()

Robert Jordan robertj at gmx.net
Tue Mar 8 11:35:12 EST 2011


On 08.03.2011 13:00, srinin wrote:
> Hi all,
>
> We are planning to develop a user services like windows services in windows
> for MAC. And we wanted to communicate both services with shared memory IPC.
> Here i wanted to know following things
>
> 1. Looks like mono-service2 is sufficient for requirement but
> MONO_DISABLE_SHM = 1what exactly it means what features wont support for
> SHM???

Shared/named handles across processes (named semaphores, files etc.).

>     >>  I have a written sample application. And run using mono-service2.Here
> i observe when i stop service % CPU is higher. How i can solve this one.

This looks like a bug. Please report it at http://mono-project.com/Bugs
and attach a self-contained test case.

>     >>  And i want make this service put it in LaunchAgent to initialize
> service whenever system restarts.

Have a look at Apple's docs (first Google hit for "Apple LaunchAgent").

>   2. Or if i write simple console application with capturing
> UnixSignal.WaitAny() is good instead mono-service2.

Probably not better than mono-service because I believe
that UnixSignal is the actual issue.

Robert



More information about the Mono-devel-list mailing list