Skip to content

Instantly share code, notes, and snippets.

@allenhsu
Created January 9, 2014 04:03
Show Gist options
  • Select an option

  • Save allenhsu/8329251 to your computer and use it in GitHub Desktop.

Select an option

Save allenhsu/8329251 to your computer and use it in GitHub Desktop.
Script to auto start shadowsocks
#!/bin/bash
process="ssserver"
if [ $(ps ax | grep -v grep | grep $process | wc -l) -gt 0 ]; then
exit
else
cd /root/shadowsocks
nohup ssserver > log &
fi
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment