2015-10-16

[SOLVED]BitTorrentSync on Linux

#16:26 14/10/2015
#/opt/script/bitsync-restart.sh
#screen
clear
echo "#####################################"
echo "KILL ALL PREVIOUS BITSYNC PROCESS:"
echo ""
#Kill all existed instance: nginx
kill $(ps aux | grep 'btsync' | awk '{print $2}') >2&1

echo "#####################################"
echo "BITSYNC STARTING..."
echo ""

sleep 5

#/disk1/bitsync/btsync
#--config /disk1/bitsync/btsync-config-1.conf

/opt/script/btsync --webui.listen 127.0.0.1:65000

echo "#####################################"
echo "CHECK BITSYNC SERVICES+PORT:  netstat -ntlup | egrep 'Proto|btsync'"
echo ""
#Check status services+port:
sleep 3
netstat -ntlup | egrep "Proto|btsync"

echo "#####################################"
echo "CHECK BITSYNC PID: ps aux | egrep 'PID|btsync'"
echo ""
#Check PID:
ps aux | egrep "PID|btsync"
echo "#####################################"
#
#

No comments:

Post a Comment