Skip to content

Instantly share code, notes, and snippets.

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