Re: Adding KeepAlive in LauchDaemon plist
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=Zn+VdG/d5+goqBQLLFMXk4YCK0oTX7JE/jVhGxoXuQk=; b=T9notNzi4idhk6Mzu2sRuvoomylQ2RnfccQwkuyU59BNARdrRg5uSrdjjwAYvxpO+S zlbV4MzdM+E/QjmT4o5efFakhV6lz3wO1Huxlrysh4R2mgOuNsTq/AS2+ozWWMw8tVLI 00nhDgJCYxFQhrN5ib+bTrIpHZ2O9haq4LcbA= User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 I am by no means an expert, but have you tried this: <key>Program</key> <array> <string>/usr/local/encase/Encase</string> </array> <key>ProgramArguments</key> <array> <string>start</string> </array> …which gives launchd a clue as to which binary it needs to keep alive. -Christian On Tue, September 20, 2011 6:20 am, Karthikeyan M wrote: Hi, I am trying to create a Launch Daemon for EnCase binary file. I have to add KeepAlive to the Launch Daemon plist. The process should be alive even if it exists normally (with exit 0) or crashes with error. I tried adding <key>KeepAlive</key> in the Launch Daemon(below) created but this keeps on running the Program Arguments resulting in multiple process of the same binary. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>KeepAlive</key> <true/> <key>Label</key> <string>com.guidancesoftware.encase</string> <key>ProgramArguments</key> <array> <string>/usr/local/encase/Encase</string> <string>start</string> </array> <key>QueueDirectories</key> <array/> <key>RunAtLoad</key> <true/> <key>WatchPaths</key> <array/> </dict> </plist> Someone help me in changing the LauchDaemon plist so that the process kickstart again if it exits? Thanks & Regards, Karthikeyan M _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/lindemer%40apple.com This email sent to lindemer@apple.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/karthikeyan.mac%40gmail... This email sent to karthikeyan.mac@gmail.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Karthikeyan M