đSwitching from tmux to service
Last updated
Last updated
If you have been running your node via a tmux session (previous version of this guide), but now would like to run it as a service for flexibility, here is what you can do.
Kill your tmux session
Run the below script
Follow the Safety checks before running this script in your server
The script simply check for new node updates, then creates a service file with the right configurations and starts it for you. You can inspect the code here
When the script finishes, you will start seeing your node log. Press CTRL+C to stop it (this won't stop your node, just the view of the log).
Delete your cronjob, if you have one, for starting the node automatically after a reboot. The service will now take care of this automatically.
If you are prompted to choose an editor, choose "nano". Delete the cronjob starting with @reboot, in case you have more than one. Then save with CTRL + X, then Y, then ENTER.