-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Similar to this go-ipfs install.sh script that writes a launchd .plist file to ~/Library/LaunchAgents.
But our script will start ION, not just the IPFS daemon.
On macOS the service config file will be ~/Library/LaunchAgents/foundation.identity.ion.plist. On Linux it will be /etc/systemd/system/ion.service.
Then we can either start ION automatically on boot/login, or with a single command (on macOS):
launchctl load ~/Library/LaunchAgents/foundation.identity.ion.plist
or (on Linux):
sudo systemctl enable ion.service
NOTE: On macOS, once added it can sometimes be difficult to stop processes from re-launching (e.g. force quit or kill -9 only kill the current process, which immediately restarts with a different PID). To fix this, e.g. to permanently stop IPFS, do:
launchctl list | grep ipfs
to list any IPFS launchctl configurations. This should reveal the current PID and associated label, e.g.:
35509 1 tech.ipfs.daemon
and then do:
launchctl remove tech.ipfs.daemon