• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Adding KeepAlive in LauchDaemon plist
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding KeepAlive in LauchDaemon plist


  • Subject: Re: Adding KeepAlive in LauchDaemon plist
  • From: "Christian Lindemer" <email@hidden>
  • Date: Tue, 20 Sep 2011 07:59:33 -0500 (CDT)
  • Importance: Normal

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      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Adding KeepAlive in LauchDaemon plist
      • From: Karthikeyan M <email@hidden>
References: 
 >Adding KeepAlive in LauchDaemon plist (From: Karthikeyan M <email@hidden>)

  • Prev by Date: Adding KeepAlive in LauchDaemon plist
  • Next by Date: Re: Adding KeepAlive in LauchDaemon plist
  • Previous by thread: Adding KeepAlive in LauchDaemon plist
  • Next by thread: Re: Adding KeepAlive in LauchDaemon plist
  • Index(es):
    • Date
    • Thread