-
-
Save ivan-leschinsky/9730dfd258afd67e3c0d27cf00d0047b to your computer and use it in GitHub Desktop.
systemd .service file for node.js app. Requires forever.
This file contains hidden or 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=Start Herir Node.js Service | |
Requires=network.target | |
After=network.target | |
[Service] | |
Type=forking | |
WorkingDirectory=/srv/hereir/node | |
ExecStart=/usr/bin/forever start --pidFile /var/run/hereir.pid HereIR.js | |
ExecStop=/usr/bin/forever stop HereIR.js | |
PIDFile=/var/run/hereir.pid | |
User=user | |
Group=group |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment