Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pipes, scripts, and launchd



On Dec 29, 2007, at 1:16 AM, Dave Zarzycki wrote:

On Dec 28, 2007, at 6:31 PM, Perry Smith wrote:

Another related question: I saw one example launchd.plist file that had two stanzas in it. Would that work?

Two stanzas? Can you given an example?


Non-working example of what I'm talking about. Two <dict> entries in the same file -- just to keep them together since they logically belong together.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd ">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.postgresql.postgres</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/pgsql/bin/postgres</string>
<string>-D</string>
<string>/usr/local/pgsql/data</string>
</array>
<key>UserName</key>
<string>postgres</string>
<key>GroupName</key>
<string>postgres</string>
<key>StandardErrorPath</key>
<string>/path/to/fifo</string>
<key>OnDemand</key>
<false/>
</dict>
<dict>
<key>Label</key>
<string>org.postgresql.rotatelogs</string>
<key>ProgramArguments</key>
<array>
<string>/path/to/rotatelogs/script</string>
</array>
<key>UserName</key>
<string>postgres</string>
<key>GroupName</key>
<string>postgres</string>
<key>OnDemand</key>
<false/>
</dict>
</plist>


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >pipes, scripts, and launchd (From: Perry Smith <email@hidden>)
 >Re: pipes, scripts, and launchd (From: Dave Zarzycki <email@hidden>)
 >Re: pipes, scripts, and launchd (From: Perry Smith <email@hidden>)
 >Re: pipes, scripts, and launchd (From: Dave Zarzycki <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.