Created
April 10, 2018 06:53
-
-
Save JohannesBauer97/178fdc5564d0a4dae96190d9111c4e0c to your computer and use it in GitHub Desktop.
Systemd Unit for nodeJS webchecker Tool
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
# 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