Systemd
Install a node via NPM
Full Node NPM PackageInstall Service
Create a new file in /etc/systemd/system/zen-node.service
with the following:
[Unit]
Description=Zen Node
After=network.target
[Service]
Type=simple
WorkingDirectory=/usr/lib/node_modules/@zen/zen-node/Release/
ExecStart=/usr/bin/mono /usr/lib/node_modules/@zen/zen-node/Release/zen-node.exe
Restart=on-failure
[Install]
WantedBy=multi-user.target
Enable and Run Service:
Enable by writing on the terminal:
systemctl enable zen-node.service
Run the service by writing:
systemctl start zen-node.service
View Service Logs
Run on the terminal:
journalctl -f -u zen-node.service
Last updated