Skip to content

Instantly share code, notes, and snippets.

@hjanuschka
Created July 1, 2015 06:21
Show Gist options
  • Save hjanuschka/3e978368dfafbec40ad6 to your computer and use it in GitHub Desktop.
Save hjanuschka/3e978368dfafbec40ad6 to your computer and use it in GitHub Desktop.
dns-proxy startup script
#!/bin/sh
export NODE_PATH=$NODE_PATH:/usr/local/lib/node_modules
case "$1" in
start)
exec forever --sourceDir=/usr/lib/node_modules/dns-proxy -p /var/run/forever start dns-proxy.js
;;
stop)
exec forever --sourceDir=/usr/lib/node_modules/dns-proxy stop dns-proxy.js
;;
esac
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment