Update start up logic

This commit is contained in:
Teddysun 2014-05-05 11:03:05 +08:00
parent a177c17bff
commit bd18ee7c80

View File

@ -154,7 +154,11 @@ function install(){
else
echo "Shadowsocks-nodejs start failure!"
fi
# Add run on system start up
cat /etc/rc.d/rc.local | grep 'ssserver' > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "nohup ssserver -c /etc/config.json > /dev/null 2>&1 &" >> /etc/rc.d/rc.local
fi
else
echo ""
echo "Shadowsocks-nodejs install failed! Please visit http://teddysun.com/355.html and contact."