Shell scripts
The benefit of writing a shell script for starting a Parallax node is that it is more easily repeatable and you don’t have to remember lots of syntax for making a node behave in a certain way. This is especially useful for running multiple nodes with their own specific configurations. To create a shell script, save the Parallax client startup commands in a shell file, prepended with#!/bin/bash
. The contents of the file might look like this:
Config files
It is also possible to tweak the deeper configuration via a config file. The config file is more complex than a shell script but it can touch parts of the internal configuration structure of the Parallax client that are not accessible through the command line interface. The config file should be a.toml
file. A convenient way to create a config file is to get the Parallax client to create one for you and use it as a template. To do this, use the dumpconfig
command, saving the result to a .toml
file. Note that you also need to explicitly provide the network_id
on the command line for the public testnet:
prlx-config.toml
, pass the config file path to --config
. The network_id
is not persisted from the config file; it has to be explicitly defined on the command line on startup, for example:
Config file example
The config file created usingdumpconfig
contains the following information (this example is for the testnet - Mainnet and other network configurations will be slightly different):