Skip to content

Instantly share code, notes, and snippets.

@iRyusa
Created September 30, 2011 08:49
Show Gist options
  • Save iRyusa/1253143 to your computer and use it in GitHub Desktop.
Save iRyusa/1253143 to your computer and use it in GitHub Desktop.
Get Pidfile for nodeJS Script on Debian based distrib
#!upstart
description "node_script"
author "nectity"
start on runlevel [23]
stop on shutdown
script
exec start-stop-daemon --start --make-pidfile --pidfile {node_script pid file} --exec {path_to_node} {path_to_node_script} 2>&1 >> {file_log}
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment