It's hard to understand what you are trying to achieve, but if you like to create a unit file for systems which will start your nextjs application you can use this https://gist.github.com/hardywu/361811f09130acae1762bfbf61a67e9c as template and this https://www.shubhamdipt.com/blog/how-to-create-a-systemd-service-in-linux/ as step by step instructions.
Hope it helps
- AWS OFFICIALUpdated 4 months ago
- How can I change or retain my private IP or public IP address when I do an Amazon EC2 restore in AWS Backup?AWS OFFICIALUpdated 5 months ago
- How do I troubleshoot issues when I configure SSM Agent to use a proxy for managing my Amazon EC2 instance?AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago
- EXPERTpublished 2 months ago