Created
February 17, 2017 03:12
-
-
Save perillamint/887becd65c17879c33eb192a073cdfee to your computer and use it in GitHub Desktop.
systemd unit for node app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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