Update qbittorrent.init

This commit is contained in:
MarkusMcNugen 2018-02-04 19:05:00 -05:00 committed by GitHub
parent ef722d6cd6
commit 6bed71d38d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ SCRIPTNAME="/etc/init.d/qbittorrent"
NAME="qbittorrent-nox" NAME="qbittorrent-nox"
DESC="QBittorrent" DESC="QBittorrent"
PIDFILE="/var/run/$NAME.pid" PIDFILE="/var/run/$NAME.pid"
QBTLOG="/var/log/$NAME.log" QBTLOG="/config/qBittorrent/data/logs/$NAME daemon.log"
DAEMON="/usr/bin/qbittorrent-nox" DAEMON="/usr/bin/qbittorrent-nox"
DAEMON_ARGS="--profile=/config" DAEMON_ARGS="--profile=/config"
@ -31,7 +31,7 @@ DAEMONSTRING="$DAEMON $DAEMON_ARGS >> $QBTLOG 2>&1"
export DBUS_SESSION_BUS_ADDRESS="" export DBUS_SESSION_BUS_ADDRESS=""
# Exit if the package is not installed # Exit if the package is not installed
[ -x "$DAEMONPATH$DAEMON" ] || exit 0 [ -x "$DAEMON" ] || exit 0
# Read configuration variable file if it is present # Read configuration variable file if it is present
#[ -r /etc/default/$NAME ] && . /etc/default/$NAME #[ -r /etc/default/$NAME ] && . /etc/default/$NAME