Skip to content

Instantly share code, notes, and snippets.

@JohannesBauer97
Created April 10, 2018 06:53
Show Gist options
  • Save JohannesBauer97/178fdc5564d0a4dae96190d9111c4e0c to your computer and use it in GitHub Desktop.
Save JohannesBauer97/178fdc5564d0a4dae96190d9111c4e0c to your computer and use it in GitHub Desktop.
Systemd Unit for nodeJS webchecker Tool
# First add a nodejs system user
# useradd -M -s nodejs
# Github Repo: https://github.com/Waterfront97/WebCheck
[Unit]
Description=Controls WebChecker
After=network.target apache2.service
[Service]
User=nodejs
ExecStart=/usr/bin/node /home/WebCheck/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