Steps to run harmony node with systemd:
- create a service file: sudo nano /etc/systemd/system/harmony.service;
- copy the code above into the service file created and adapt it; It is important to define correctly the working directory and from where the node should be executed. This is basically quite simple as it represents the user and folder where node.sh is placed.
- Ctrl+X to save the service file;
- You might have to create the hmn directory under /var/log/ so that the hmn.log or how you want to call it can be written into;
- sudo systemctl enable harmony.service;
- sudo systemctl start harmony.service;
- sudo systemctl status harmony.service;
- Check the logs;