Update start.sh

This commit is contained in:
MarkusMcNugen 2018-02-11 22:51:44 -05:00 committed by GitHub
parent a1bf875df0
commit 19a6e9b9d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,13 +13,13 @@ if [[ ! -e /config/qBittorrent/config/qBittorrent.conf ]]; then
chmod 755 /config/qBittorrent/config/qBittorrent.conf chmod 755 /config/qBittorrent/config/qBittorrent.conf
fi fi
echo "[info] Starting qBittorrent daemon..." echo "$(date) [info] Starting qBittorrent daemon..."
/bin/bash /etc/qbittorrent/qbittorrent.init start & /bin/bash /etc/qbittorrent/qbittorrent.init start &
chmod -R 755 /config/qBittorrent chmod -R 755 /config/qBittorrent
sleep 1 sleep 1
qbpid=$(pgrep -o -x qbittorrent-nox) qbpid=$(pgrep -o -x qbittorrent-nox)
echo "[info] qBittorrent PID: $qbpid" echo "$(date) [info] qBittorrent PID: $qbpid"
if [ -e /proc/$qbpid ]; then if [ -e /proc/$qbpid ]; then
if [[ -e /config/qBittorrent/data/logs/qbittorrent.log ]]; then if [[ -e /config/qBittorrent/data/logs/qbittorrent.log ]]; then