Skip to main content

How to Be a Collator on Battery Station

Run the node in "Collator mode"

Download and set up the node environment

  1. Use the following command line to get the latest Zeitgeist node binary.
curl -o zeitgeist https://github.com/zeitgeistpm/zeitgeist/releases/download/v0.3.2/zeitgeist_parachain
chmod +x zeitgeist
  1. Register a non-privileged user to run the Zeitgeist node service. Docker is not recommended, as it gives a sub-optimal performance.

    sudo useradd -M -r -s /sbin/nologin zeitgeist

  2. Copy the node binary to the specified folder.

sudo mkdir -p /services/zeitgeist/bin
sudo cp /path/to/your/target/release/zeitgeist /services/zeitgeist/bin
sudo chown -R zeitgeist:zeitgeist /services/zeitgeist
sudo chmod -R go=-rwx /services/zeitgeist
  1. Create a new service.

    sudo nano /etc/systemd/system/zeitgeist-node.service

  2. Configure the relevant information in the file.

[Unit]
Description=Zeitgeist Battery Station parachain full node
After=network.target
Requires=network.target

[Service]
Type=simple
User=zeitgeist
Group=zeitgeist
RestartSec=5
Restart=always
Nice=0
ExecStart=/services/zeitgeist/bin/zeitgeist \
--base-path=/services/zeitgeist/battery_station \
--chain=battery_station \
--name-=zeitgeist-whisker \
--port=30333 \
--rpc-port=9933 \
--ws-port=9944 \
--collator \
--rpc-cors=all \
--pruning=archive \
--\
--port=30334 \
--rpc-port=9934 \
--ws-port=9945


[Install]
WantedBy=multi-user.target
  1. Enable and start the service.
sudo systemctl enable zeitgeist-node
sudo systemctl start zeitgeist-node
  1. Check the status of the service:

    systemctl status zeitgeist-node

  2. To view the service logging.

    journalctl -u zeitgeist-node