Update start.sh

This commit is contained in:
MarkusMcNugen 2018-02-11 22:51:20 -05:00 committed by GitHub
parent 6997adb6bc
commit a1bf875df0
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..." | ts '%Y-%m-%d %H:%M:%.S' echo "[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" | ts '%Y-%m-%d %H:%M:%.S' echo "[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