^^^^ SEE ABOVE ^^^^
Save to user's launch agent path -->
~/Library/LaunchAgents/gerbera.io.plist
$ launchctl load ~/Library/LaunchAgents/gerbera.io.plist
$ launchctl start gerbera.io
$ launchctl stop gerbera.io
| <?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> | |
| <key>Disabled</key> | |
| <false/> | |
| <key>Label</key> | |
| <string>gerbera.io</string> | |
| <key>ProgramArguments</key> | |
| <array> | |
| <string>/usr/local/bin/gerbera</string> | |
| <string>--home</string> | |
| <string>/your/gerbera/home</string> | |
| <string>--config</string> | |
| <string>/your/gerbera/config.xml</string> | |
| </array> | |
| <key>RunAtLoad</key> | |
| <true/> | |
| <key>StandardOutPath</key> | |
| <string>/your/gerbera/home/std.out</string> | |
| <key>StandardErrorPath</key> | |
| <string>/your/gerbera/home/std.err</string> | |
| </dict> | |
| </plist> |
^^^^ SEE ABOVE ^^^^
Save to user's launch agent path -->
~/Library/LaunchAgents/gerbera.io.plist
$ launchctl load ~/Library/LaunchAgents/gerbera.io.plist
$ launchctl start gerbera.io
$ launchctl stop gerbera.io