-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Launch ION in single command & enable autostart on boot #211
Comments
Launchd notes (macOS)Launchd docs: https://www.launchd.info/ See also: https://gist.github.com/johndturn/09a5c055e6a56ab61212204607940fa0
Without them the
when running
and then run
use:
Note that the EnvironmentVariables must contain only one dictionary (with as many key-value pairs as needed).
and to stop one, use
|
To check for the correct OS (in the install script):
|
In progress on branch This is now working on macOS. After installing ION, run the install script:
and then load the agent (this only needs to be done once):
Then all ION services will start automatically on user login. 🚀 Next step: do the same for Linux. |
TODO: only write the |
TODO:
|
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):
or (on Linux):
The text was updated successfully, but these errors were encountered: