mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-01 14:28:02 +08:00
`launchd` doesn't allow you to *use* environment variables. Nor does it support tilde-expansion of program names & arguments after OSX 10.10. To work around this, I've made the plist file a template and included a small install script that will interpolate the correct values.
28 lines
733 B
Plaintext
28 lines
733 B
Plaintext
<?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>KeepAlive</key>
|
|
<true/>
|
|
<key>Label</key>
|
|
<string>io.ipfs.ipfs-daemon</string>
|
|
<key>ProgramArguments</key>
|
|
<array>
|
|
<string>ipfs</string>
|
|
<string>daemon</string>
|
|
</array>
|
|
<key>EnvironmentVariables</key>
|
|
<dict>
|
|
<key>IPFS_PATH</key>
|
|
<string>{{IPFS_PATH}}</string>
|
|
</dict>
|
|
<key>RunAtLoad</key>
|
|
<true/>
|
|
<key>StandardErrorPath</key>
|
|
<string>{{IPFS_PATH}}/logs/stderr.log</string>
|
|
<key>StandardOutPath</key>
|
|
<string>{{IPFS_PATH}}/logs/stdout.log</string>
|
|
</dict>
|
|
</plist>
|
|
|