Created
December 13, 2012 15:51
-
-
Save Dianoga/4277344 to your computer and use it in GitHub Desktop.
systemd .service file for node.js app. Requires forever.
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
[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