Created
June 25, 2013 12:58
Revisions
-
slashdevsda created this gist
Jun 25, 2013 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ [Unit] Description=Start Node.js Service Requires=network.target mongodb.service After=network.target [Service] Type=forking WorkingDirectory=/srv/node/ ExecStart=/usr/bin/forever start --pidFile /srv/node/nodeserialskiller.pid /srv/node/server.js ExecStop=/usr/bin/forever stop /srv/node/server.js PIDFile=/srv/node/nodeserialskiller.pid User=nodejs Group=nodejs [Install] WantedBy=multi-user.target