docs: 添加 macOS launchd 服务配置和安装指南 (#142)

This commit is contained in:
varz1
2025-09-24 11:49:04 +08:00
committed by GitHub
parent 177a64822d
commit c54c00b27c
3 changed files with 133 additions and 0 deletions

28
deploy/macos/xhsmcp.plist Normal file
View File

@@ -0,0 +1,28 @@
<?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>Label</key>
<string>xhsmcp</string>
<key>ProgramArguments</key>
<array>
<string>{二进制路径}</string>
</array>
<key>WorkingDirectory</key>
<string>{工作路径}</string>
<key>RunAtLoad</key>
<false/>
<key>KeepAlive</key>
<false/>
<key>StandardOutPath</key>
<string>/tmp/xhsmcp.log</string>
<key>StandardErrorPath</key>
<string>/tmp/xhsmcp.err</string>
</dict>
</plist>