Update start.sh

This commit is contained in:
MarkusMcNugen 2018-02-03 22:40:10 -05:00 committed by GitHub
parent 35f7eaee06
commit 0ade3513c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ _handler() {
fi fi
} }
trap _handler SIGINT SIGTERM SIGHUP #trap _handler SIGINT SIGTERM SIGHUP
if [[ ! -e /config/qBittorrent ]]; then if [[ ! -e /config/qBittorrent ]]; then
mkdir -p /config/qBittorrent/config/ mkdir -p /config/qBittorrent/config/
@ -24,7 +24,7 @@ if [[ ! -e /config/qBittorrent/config/qBittorrent.conf ]]; then
fi fi
echo "[info] Starting qBittorrent daemon..." | ts '%Y-%m-%d %H:%M:%.S' echo "[info] Starting qBittorrent daemon..." | ts '%Y-%m-%d %H:%M:%.S'
/etc/qbittorrent/qbittorrent.init & /etc/qbittorrent/qbittorrent.init start
while true; do while true; do
if [ -e /config/qBittorrent ]; then if [ -e /config/qBittorrent ]; then
@ -36,5 +36,5 @@ while true; do
fi fi
done done
child=$(pgrep -o -x qbittorrent-nox) #child=$(pgrep -o -x qbittorrent-nox)
wait "$child" #wait "$child"