Skip to content

Instantly share code, notes, and snippets.

@madeye
Created June 11, 2013 13:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madeye/5756610 to your computer and use it in GitHub Desktop.
Save madeye/5756610 to your computer and use it in GitHub Desktop.
case "$1" in
start)
/usr/bin/ulimit -n 51200
/usr/sbin/ndd -set /dev/tcp tcp_conn_req_max_q 4096
/usr/sbin/ndd -set /dev/tcp tcp_conn_req_max_q0 8192
/opt/local/bin/ss-server -c /root/config.json -f /root/ss.pid
;;
stop)
/opt/local/bin/kill `cat /root/ss.pid`
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment