Define configuration for running the
cheqd-noded binary as a service
It is highly recommended to run the
cheqd-node as a system service using a supervisor such as
Our Debian package uses postinst script for setting up our binary as a service. The same tool can be used to set up the binary as a service.
There is only one input parameter for
postinst script, it's a path to where binary is.
To set up the binary using
postint, execute the following with sudo privileges:
bash postinst <path/to/cheqd-noded/binary>
This will add a service file and prepare all needed directories for
data. The script also creates a new service user called
cheqd, to ensure that all processes and directories related to
cheqd-noded are isolated under that service user.