Skip to content

Instantly share code, notes, and snippets.

@Niakr1s
Last active February 13, 2021 11:25
Show Gist options
  • Save Niakr1s/f3dd1a98ea99c2c9a3c82115ddf4f13d to your computer and use it in GitHub Desktop.
Save Niakr1s/f3dd1a98ea99c2c9a3c82115ddf4f13d to your computer and use it in GitHub Desktop.
systemd service node nvm example
#!/bin/bash
. /home/nea/.nvm/nvm.sh
npm run run
[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