74 | | copy ${worksrcpath}/pkg/darwin/com.saltstack.salt.master.plist ${destroot}/Library/LaunchDaemons |
75 | | copy ${worksrcpath}/pkg/darwin/com.saltstack.salt.syndic.plist ${destroot}/Library/LaunchDaemons |
| 72 | copy ${worksrcpath}/pkg/osx/scripts/com.saltstack.salt.master.plist \ |
| 73 | ${destroot}/Library/LaunchDaemons/org.macports.salt-master.plist |
| 74 | reinplace -W ${destroot}/Library/LaunchDaemons \ |
| 75 | "s|/opt/salt/bin/start-salt-master.sh|${prefix}/bin/salt-master|g" org.macports.salt-master.plist |
| 76 | reinplace -W ${destroot}/Library/LaunchDaemons \ |
| 77 | "s|com.saltstack.salt.master|org.macports.salt-master|g" org.macports.salt-master.plist |
| 78 | copy ${worksrcpath}/pkg/osx/scripts/com.saltstack.salt.api.plist \ |
| 79 | ${destroot}/Library/LaunchDaemons/org.macports.salt-api.plist |
| 80 | reinplace -W ${destroot}/Library/LaunchDaemons \ |
| 81 | "s|/opt/salt/bin/start-salt-api.sh|${prefix}/bin/salt-api|g" org.macports.salt-api.plist |
| 82 | reinplace -W ${destroot}/Library/LaunchDaemons \ |
| 83 | "s|com.saltstack.salt.api|org.macports.salt-api|g" org.macports.salt-api.plist |
| 84 | copy ${worksrcpath}/pkg/osx/scripts/com.saltstack.salt.syndic.plist \ |
| 85 | ${destroot}/Library/LaunchDaemons/org.macports.salt-syndic.plist |
| 86 | reinplace -W ${destroot}/Library/LaunchDaemons \ |
| 87 | "s|/opt/salt/bin/start-salt-syndic.sh|${prefix}/bin/salt-syndic|g" org.macports.salt-syndic.plist |
| 88 | reinplace -W ${destroot}/Library/LaunchDaemons \ |
| 89 | "s|com.saltstack.salt.syndic|org.macports.salt-syndic|g" org.macports.salt-syndic.plist |
94 | | sudo launchctl load -w /Library/LaunchDaemons/com.saltstack.salt.master.plist |
95 | | |
96 | | To start the salt-syndic via launchd, run |
97 | | |
98 | | sudo launchctl load -w /Library/LaunchDaemons/com.saltstack.salt.syndic.plist |
| 108 | sudo launchctl load -w /Library/LaunchDaemons/org.macports.salt-master.plist |
| 109 | sudo launchctl load -w /Library/LaunchDaemons/org.macports.salt-api.plist |
| 110 | sudo launchctl load -w /Library/LaunchDaemons/org.macports.salt-syndic.plist |
| 111 | |
| 112 | or to start on El Capitan (10.11) or later system |
| 113 | |
| 114 | sudo launchctl enable system/org.macports.salt-master |
| 115 | sudo launchctl bootstrap system /Library/LaunchDaemons/org.macports.salt-master.plist |
| 116 | sudo launchctl enable system/org.macports.salt-api |
| 117 | sudo launchctl bootstrap system /Library/LaunchDaemons/org.macports.salt-api.plist |
| 118 | sudo launchctl enable system/org.macports.salt-syndic |
| 119 | sudo launchctl bootstrap system /Library/LaunchDaemons/org.macports.salt-syndic.plist |
103 | | sudo launchctl unload -w /Library/LaunchDaemons/com.saltstack.salt.master.plist |
104 | | or |
105 | | sudo launchctl unload -w /Library/LaunchDaemons/com.saltstack.salt.syndic.plist |
| 124 | sudo launchctl unload -w /Library/LaunchDaemons/org.macports.salt-master.plist |
| 125 | sudo launchctl unload -w /Library/LaunchDaemons/org.macports.salt-api.plist |
| 126 | sudo launchctl unload -w /Library/LaunchDaemons/org.macports.salt-syndic.plist |
| 127 | |
| 128 | or to disable on El Capitan (10.11) or later system |
| 129 | |
| 130 | sudo launchctl disable system/org.macports.salt-master |
| 131 | sudo launchctl bootout system /Library/LaunchDaemons/org.macports.salt-master.plist |
| 132 | sudo launchctl disable system/org.macports.salt-api |
| 133 | sudo launchctl bootout system /Library/LaunchDaemons/org.macports.salt-api.plist |
| 134 | sudo launchctl disable system/org.macports.salt-syndic |
| 135 | sudo launchctl bootout system /Library/LaunchDaemons/org.macports.salt-syndic.plist |