MacOS/Creating Launch Daemons and Agents: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
(Created page with "==Plist== <source lang="xml"> <!-- cp /usr/local/opt/chorke/academia/etc/init.d/sa.com.medisys.amqpd.startup.plist --> <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist P...")
 
Line 1: Line 1:
==Plist==
==Plist==
<source lang="xml">
<source lang="xml">
<!-- cp /usr/local/opt/chorke/academia/etc/init.d/sa.com.medisys.amqpd.startup.plist -->
<!-- cp /usr/local/opt/chorke/academia/etc/init.d/org.chorke.academia.amqpd.startup.plist -->
<?xml version="1.0" encoding="UTF-8"?>
<?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">
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

Revision as of 01:51, 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>
</dict>
</plist>

Where

/System/Library/LaunchDaemons/
/System/Library/LaunchAgents/
/Library/LaunchDaemons/
/Library/LaunchAgents/

References