Skip to content

Setting up your Node (v1.4.21.1)

7. Create Ceremonyclient System Service (v1.4.21.1)

Return to step 1

Doing this step allows your node to be run as a system service, whereas in case your node shuts down or gets signal killed for whatever reason, the service will enable auto-restarting your node.

The name of the system service we will make is called ceremonyclient
Run:

sudo vim /lib/systemd/system/ceremonyclient.service

Press i to start inserting text into ceremonyclient.service file
Copy and paste the following lines inside the file

[Unit]
Description=Ceremony Client Go App Service

[Service]
Type=simple
Restart=always
RestartSec=5s
WorkingDirectory=/root/ceremonyclient/node
Environment=GOEXPERIMENT=arenas
ExecStart=/root/ceremonyclient/node/node-1.4.21.1-linux-amd64

[Install]
WantedBy=multi-user.target

Press esc to stop the insert-text mode
Press shift + :wq, and press enter or return on the keyboard