Skip to content

Instantly share code, notes, and snippets.

@mikebarnhardt
Last active September 20, 2016 19:14
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 mikebarnhardt/10b68782253736265a97fe536c575925 to your computer and use it in GitHub Desktop.
Save mikebarnhardt/10b68782253736265a97fe536c575925 to your computer and use it in GitHub Desktop.
Systemd NodeJS startup
[Unit]
Description=NodeJS Startup
After=network.target
[Service]
ExecStart=/usr/bin/nodejs /var/www/repo/build/server
Environment=NODE_ENV=production
User=nodejs
Restart=on-failure
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment