Skip to content

Instantly share code, notes, and snippets.

@rxw1
Forked from Dianoga/node.service
Created February 15, 2014 16:28
Show Gist options
  • Save rxw1/9021622 to your computer and use it in GitHub Desktop.
Save rxw1/9021622 to your computer and use it in GitHub Desktop.
[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