Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Unit]
- Description=MyApp Daemon
- After=elasticsearch.service
- [Service]
- WorkingDirectory=/web/myapp
- ExecStart=/opt/nodejs/bin/node index.js
- Restart=always
- StandardOutput=syslog
- StandardError=syslog
- SyslogIdentifier=myapp
- User=www-data
- Group=www-data
- Environment=NODE_ENV=production
- [Install]
- WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement