Advertisement
Guest User

Untitled

a guest
Nov 13th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. [Unit]
  2. Description=Node.js Example Server
  3.  
  4. [Service]
  5. ExecStart=/home/eguser/.nvm/versions/node/v8.9.1/bin/node /home/eguser/server.js
  6. Restart=always
  7. # Restart service after 10 seconds if node service crashes
  8. RestartSec=10
  9. StandardOutput=syslog
  10. StandardError=syslog
  11. SyslogIdentifier=nodejs-example
  12. Environment=NODE_ENV=production PORT=1337
  13.  
  14. [Install]
  15. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement