Rename ServiceName and Path in file.
Add The File To :
/etc/systemd/system/myapp.service
Reload Systemd:
sudo systemctl daemon-reload
Enable and Start The Service:
sudo systemctl enable myapp.service
sudo systemctl start myapp.service
Check the Status:
sudo systemctl status myapp.service
Logs and Troubleshooting:
journalctl -u myapp.service