On Fri, May 10, 2013 at 1:56 AM, Ondrej Holecek <ondrej.hole...@gmail.com>wrote:

> thanks for the hint, I have to check this first. However at first
> glance it seems I have to create 2 applications. Daemon and cmd-line
> app. My idea is to have just one app which behaves as a "daemon" in
> case the deamon doesn't run yet and/or as a cmd-line tool if the
> daemon runs. But maybe it is not the way.
>

Make launchd run the same executable, but with a "--daemon" option. That's
got to be as easy, or easier, than detecting an already running one and
forking + daemonizing.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to