gitee.com/quant1x/engine@v1.8.4/command/daemon_dev_darwin.go (about) 1 //go:build darwin && dev 2 // +build darwin,dev 3 4 package command 5 6 var propertyList = `<?xml version="1.0" encoding="UTF-8"?> 7 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 8 <plist version="1.0"> 9 <dict> 10 <key>KeepAlive</key> 11 <true/> 12 <key>Label</key> 13 <string>{{.Name}}</string> 14 <key>ProgramArguments</key> 15 <array> 16 <string>{{.Path}}</string> 17 {{range .Args}}<string>{{.}}</string> 18 {{end}} 19 </array> 20 <key>RunAtLoad</key> 21 <true/> 22 <key>WorkingDirectory</key> 23 <string>${ROOT_PATH}</string> 24 <key>StandardErrorPath</key> 25 <string>${LOG_PATH}/{{.Name}}.err</string> 26 <key>StandardOutPath</key> 27 <string>${LOG_PATH}/{{.Name}}.log</string> 28 </dict> 29 </plist> 30 `