Skip to content

Instantly share code, notes, and snippets.

@anoochit
Created September 23, 2014 05:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anoochit/caca5a75bb7123221fb1 to your computer and use it in GitHub Desktop.
Save anoochit/caca5a75bb7123221fb1 to your computer and use it in GitHub Desktop.
node.js systemd unit file
[Unit]
Description=Hello Express Service
After=mongod.service
[Service]
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=node-hello
Environment=NODE_ENV=production
ExecStart=/root/hello/bin/www
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment