Skip to content

Instantly share code, notes, and snippets.

@hqingyi
Created November 15, 2015 12:13
Show Gist options
  • Save hqingyi/ae4451683f8ee5a73914 to your computer and use it in GitHub Desktop.
Save hqingyi/ae4451683f8ee5a73914 to your computer and use it in GitHub Desktop.
Shadowsocks init.d
#!/bin/sh
start(){
ssserver -c /etc/shadowsocks.json -d start
}
stop(){
ssserver -c /etc/shadowsocks.json -d stop
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo "Usage: $0 {start|restart|stop}"
exit 1
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment