Xerom node daemon for the Xerom (XERO) Network
This method uses a bind mount to persist the blockchain data on the host.
To simplify things, basic operations have been added as Makefile
commands.
make image
make node
make attach
Assuming you have created a user xeromnode
in group xeromnode
and have cloned this repository in the xeromnode
home user directory,
the following service file will start the daemon automatically at system startup.
Enter the following into /etc/systemd/system/xeromnode.service
:
[Unit]
Description=Xerom node daemon service
After=network.target
[Service]
User=xeromnode
Group=xeromnode
Type=simple
Restart=always
RestartSec=30s
WorkingDirectory=/home/xeromnode/xerom-node-dockerized
ExecStart=/usr/bin/make node
[Install]
WantedBy=default.target
After creating the service file, enable and restart the service:
systemctl enable xeromnode
systemctl restart xeromnode
NOTE: You must make sure the service is running if you use interactive mode for the geth console.
To stop the service:
systemctl stop xeromnode
To restart the service:
systemctl restart xeromnode
Skip the entire build process by using a prebuilt image from Docker Hub. This is only recommended for testing & development. We cannot guaruntee how often the image will be updated.
Edit the Makefile
and replace all occurrances of xerom:${GIT_REF}
with wattpool/xeromnode
, then coninue setup in the section aboove, "To run as a systemd service".
docker pull wattpool/xeromnode
docker run wattpool/xeromnode
docker run --mount source=xerom,target=/root wattpool/xeromnode
docker run wattpool/xeromnode attach
0x087c83e882822E96AD09eF2A15391C88E241AdA8
(XERO)