I hereby claim:
- I am literalsands on github.
- I am literalsands (https://keybase.io/literalsands) on keybase.
- I have a public key whose fingerprint is 3480 FAB1 8DA1 335B 5817 AB13 E67C C707 AA9F 438D
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#! /bin/sh | |
# ------------------------------------------------------------------------------ | |
# SOME INFOS : fairly standard (debian) init script. | |
# Note that node doesn't create a PID file (hence --make-pidfile) | |
# has to be run in the background (hence --background) | |
# and NOT as root (hence --chuid) | |
# | |
# MORE INFOS : INIT SCRIPT http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit | |
# INIT-INFO RULES http://wiki.debian.org/LSBInitScripts | |
# INSTALL/REMOVE http://www.debian-administration.org/articles/28 |
// A bit hacky... | |
// I'm using Underscore | |
// Make Template a function. Gets and extends template instances. | |
Template = _.extend(function(instance_name, instance_functions) { | |
var instance = Template[instance_name]; | |
if (instance && _.isObject(instance_functions)) | |
_.extend(instance, instance_functions); | |
return instance; | |
}, Template); |