diff --git a/setup-scripts/README.md b/setup-scripts/README.md index cd011524..335fc3c1 100644 --- a/setup-scripts/README.md +++ b/setup-scripts/README.md @@ -55,10 +55,28 @@ done so. To enable the service: `systemctl --user enable siad.service` +### Running 2 siad instances +In some cases, portal operators may want to run 2 `siad` nodes on the same +server. One node to prioritize downloads and one to prioritze uploads The +scripts here also do the initial setup for a 2nd `siad` instance running as a +systemd service `siad-upload.service` in the `~/siad-upload/` directory with +environment variables in `sia-upload.env`. You must fill out the correct values +for those environment variables. + +The `bashrc` file in this repository also provides an alias `siac-upload` that +loads the correct environment variables and sets the correct ports to interact +with the 2nd `siad` node. + +`siac` is used to operate node 1, and `siac-upload` is used to operate node 2. + +To enable the 2nd service: `systemctl --user enable siad-upload.service` + ### Useful Commands To start the service: `systemctl --user start siad` + To stop it: `systemctl --user stop siad` + To check the status of it: `systemctl --user status siad` To check standard err/standard out: `journalctl --user-unit siad`