MacOS/Creating Launch Daemons and Agents: Difference between revisions
Jump to navigation
Jump to search
(→Plist) |
(→Plist) |
||
Line 12: | Line 12: | ||
<key>LaunchOnlyOnce</key> <true/> | <key>LaunchOnlyOnce</key> <true/> | ||
<key>ProgramArguments</key> | <key>ProgramArguments</key> | ||
<array> | |||
<string>/usr/local/opt/chorke/academia/etc/init.d/amqpd.sh</string> | |||
<string>restart</string> | |||
</array> | |||
<key>StandardErrorPath</key> <string>/tmp/amqpd.err</string> | |||
<key>StandardOutPath</key> <string>/tmp/amqpd.out</string> | |||
</dict> | </dict> | ||
</plist> | </plist> |
Revision as of 02:38, 13 June 2019
Plist
<!-- cp /usr/local/opt/chorke/academia/etc/init.d/org.chorke.academia.amqpd.startup.plist -->
<?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.chorke.academia.amqpd.startup</string>
<key>Disabled</key> <false/>
<key>RunAtLoad</key> <true/>
<key>KeepAlive</key> <false/>
<key>LaunchOnlyOnce</key> <true/>
<key>ProgramArguments</key>
<array>
<string>/usr/local/opt/chorke/academia/etc/init.d/amqpd.sh</string>
<string>restart</string>
</array>
<key>StandardErrorPath</key> <string>/tmp/amqpd.err</string>
<key>StandardOutPath</key> <string>/tmp/amqpd.out</string>
</dict>
</plist>
Where
/System/Library/LaunchDaemons/ /System/Library/LaunchAgents/
/Library/LaunchDaemons/ /Library/LaunchAgents/