Skip to content

Commit

Permalink
Update start.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
sybdata authored Feb 3, 2019
1 parent eb5c527 commit c461834
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions root/opt/start.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
#!/bin/bash

python /opt/HTTPAceProxy-master/acehttp.py >/dev/null 2>&1 &

while true; do
sleep 600
rm -rf /tmp/state/.ACEStream/collected_torrent_files/*
done

#!/bin/bash

# ACE Stream
/opt/acestream/start-engine --client-console --bind-all --access-token $1 --cache-dir /fs --state-dir /fs --log-file /fs/log >/dev/null 2>&1 &
/opt/acestream/start-engine --client-console --bind-all --access-token $1 --cache-dir /fs --state-dir /fs --vod-drop-max-age 120 --live-cache-type memory --vod-cache-type memory --live-buffer 25 --vod-buffer 10 --service-remote-access --stats-report-peers --log-file /fs/log >/dev/null 2>&1 &

# HTTPAceProxy
python /opt/HTTPAceProxy-master/acehttp.py >/dev/null 2>&1 &

# clear cache
while true; do
Expand All @@ -20,5 +14,5 @@ while true; do
fi

sleep $2
rm -rf /fs/.acestream_cache/*
rm -rf /fs/.acestream_cache/* /fs/collected_torrent_files/*
done

0 comments on commit c461834

Please sign in to comment.