Skip to content

Instantly share code, notes, and snippets.

View jmtagarro's full-sized avatar

José María Tagarro Martí jmtagarro

View GitHub Profile
@jmtagarro
jmtagarro / node.sh
Created March 29, 2012 13:47
node.js init.d script for CentOS with pidfile
#!/bin/sh
#
# chkconfig: 35 99 99
# description: Node.js /home/nodejs/sample/app.js
#
. /etc/rc.d/init.d/functions
# Creamos un fichero PID para monit
SCRIPT="$(basename $0)"