Update start up logic
This commit is contained in:
parent
a177c17bff
commit
bd18ee7c80
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user