Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. [Unit]
  2. Description=MyApp Daemon
  3. After=elasticsearch.service
  4.  
  5. [Service]
  6. WorkingDirectory=/web/myapp
  7. ExecStart=/opt/nodejs/bin/node index.js
  8. Restart=always
  9. StandardOutput=syslog
  10. StandardError=syslog
  11. SyslogIdentifier=myapp
  12. User=www-data
  13. Group=www-data
  14. Environment=NODE_ENV=production
  15.  
  16. [Install]
  17. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement