Re: pipes, scripts, and launchd
Re: pipes, scripts, and launchd
- Subject: Re: pipes, scripts, and launchd
- From: Perry Smith <email@hidden>
- Date: Sat, 29 Dec 2007 07:52:01 -0600
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:
This email sent to email@hidden