Skip to content

Instantly share code, notes, and snippets.

@perillamint
Created February 17, 2017 03:12
Show Gist options
  • Save perillamint/887becd65c17879c33eb192a073cdfee to your computer and use it in GitHub Desktop.
Save perillamint/887becd65c17879c33eb192a073cdfee to your computer and use it in GitHub Desktop.
systemd unit for node app
[Unit]
Description=Your awesome nodejs app
After=network.target
[Service]
User=awesome_user_account_name_here
Environment=NODE_ENV=production
ExecStart=/opt/awesomenode/launcher_script.sh
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