Skip to content

Instantly share code, notes, and snippets.

@madeye
Created Jun 11, 2013
Embed
What would you like to do?
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