Setting up your Node (v2.1.0-p2)
7. Create Ceremonyclient System Service (v2.1.0-p2)
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.servicePress 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-2.1.0.2-linux-amd64
[Install]
WantedBy=multi-user.targetPress esc to stop the insert-text mode
Press shift + :wq, and press enter or return on the keyboard
