sudo launchctl bootstrap system /Library/LaunchDaemons/com.service.sd.plist # loads+starts service
sudo launchctl bootout system /Library/LaunchDaemons/com.service.sd.plist # unloads+stops serviceReplace com.service.sd.plist with other plist files for other services. Perfect for local or remote box like a Mac Studio. These services will start on boot and require no login! 🙏
SD defaults to port 7860. Ollama defaults to port 11434. I use caddy to add SSL. Then you may use tools like open-webui and mods that can point to this ollama + SD, api keys, openai compatible api and more!
🤷 not sure but the below does not work for me, so I used sudo -u
<key>UserName</key>
<string>user</string>
<key>Group</key>
<string>staff</string>brew install caddy ollama # I used these binaries for the services
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes -subj "/CN=name" # for caddyMake sure to allow through firewall if it's on!