I've seen one other post about this problem and it didn't seem to work so I'm posting my issue that might be a little different. The code for my service is file is below:
[Unit]
Description=Node.js Application
After=syslog.target network.target
[Service]
Type=simple
User=root
WorkingDirectory=/root
Enviroment=NODE_ENV=production
ExecStart=/usr/bin/node helloworld.js
Restart=always
[Install]
WantedBy=multi-user.target
This is the tutorial I am using: https://blog.eduonix.com/web-programming-tutorials/deploy-node-js-application-linux-server/ I am using a Raspberry Pi if that makes a difference
The error says:
helloworld.service: Start request repeated too quickly.
helloworld.service: Failed with result 'exit-code'.
Failed to start Node.js Application