Created
July 1, 2015 06:21
-
-
Save hjanuschka/3e978368dfafbec40ad6 to your computer and use it in GitHub Desktop.
dns-proxy startup script
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 characters
#!/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