Last active
February 13, 2021 11:25
-
-
Save Niakr1s/f3dd1a98ea99c2c9a3c82115ddf4f13d to your computer and use it in GitHub Desktop.
systemd service node nvm example
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
#!/bin/bash | |
. /home/nea/.nvm/nvm.sh | |
npm run run |
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=vnr | |
[Service] | |
ExecStart=/home/nea/services/vnr-html/vnr-html.sh | |
WorkingDirectory=/home/nea/services/vnr-html | |
Restart=on-failure | |
User=nea | |
KillMode=process | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment