Merge pull request #20870 from yesimon/merge_plists

Use plist from pkg in launchd runner.
This commit is contained in:
Thomas S Hatch 2015-02-20 17:51:52 -07:00
commit 740af3c8c7

View File

@ -23,19 +23,28 @@ def write_launchd_plist(program):
<?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>
<dict>
<key>Label</key>
<string>org.saltstack.{program}</string>
<key>ProgramArguments</key>
<array>
<string>{python}</string>
<string>{script}</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
<key>KeepAlive</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>{script}</string>
</array>
<key>SoftResourceLimits</key>
<dict>
<key>NumberOfFiles</key>
<integer>100000</integer>
</dict>
<key>HardResourceLimits</key>
<dict>
<key>NumberOfFiles</key>
<integer>100000</integer>
</dict>
</dict>
</plist>
'''.strip()