Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Unit]
- Description=Node.js Example Server
- [Service]
- ExecStart=/home/eguser/.nvm/versions/node/v8.9.1/bin/node /home/eguser/server.js
- Restart=always
- # Restart service after 10 seconds if node service crashes
- RestartSec=10
- StandardOutput=syslog
- StandardError=syslog
- SyslogIdentifier=nodejs-example
- Environment=NODE_ENV=production PORT=1337
- [Install]
- WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement