kubo/misc/launchd/io.ipfs.ipfs-daemon.plist
Stephen Sugden 9fc7dfbd15 Template plist to work around launchd limitations
`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.
2015-05-01 11:33:18 +02:00

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>