[launchd-dev] Help in launching a launch daemon
Damien Sorresso
dsorresso at apple.com
Fri Feb 5 13:30:17 PST 2010
On Feb 5, 2010, at 1:23 PM, Arun wrote:
> Hi All,
>
> I am a newbie to launchd.
>
> I have a requirement to launch a system daemon whenever a file is created / modified.
> Also this daemon should not be launched multiple times, means even if the daemon crashes it should not be launched.
> Also this daemon shloud not be launched when the system starts.
>
> Can anyone help me in writing the launchd plist file satisfying the above.
$ man launchd.plist
See the WatchPaths and LaunchOnlyOnce keys, specifically.
--
Damien Sorresso
BSD Engineering
Apple Inc.
More information about the launchd-dev
mailing list