Skip to content

Instantly share code, notes, and snippets.

@JohannesBauer97
Last active April 9, 2018 15:36
Show Gist options
  • Save JohannesBauer97/7092dad5a86ecd4d6a5e61990681cd5f to your computer and use it in GitHub Desktop.
Save JohannesBauer97/7092dad5a86ecd4d6a5e61990681cd5f to your computer and use it in GitHub Desktop.
NodeJS Systemd Start/Stop Unit
[Unit]
Description=Controls Gamerino Channelwatcher REST API
After=network.target mysql.service
[Service]
User=nodejs
ExecStart=/usr/bin/node /home/websites/TSChannelWatcher/api/index.js
Restart=always
[Install]
WantedBy=basic.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment