mirror of
https://github.com/MarkusMcNugen/docker-qBittorrentvpn
synced 2024-11-15 07:04:57 +00:00
Update qbittorrent.init
This commit is contained in:
parent
b1dd5222b2
commit
84285c8e50
@ -56,7 +56,7 @@ do_start()
|
|||||||
else
|
else
|
||||||
echo "Log file $QBTLOG doesn't exist. Creating it..."
|
echo "Log file $QBTLOG doesn't exist. Creating it..."
|
||||||
touch $QBTLOG
|
touch $QBTLOG
|
||||||
chown $USER:$USER $QBTLOG
|
chown $USER:$GROUP $QBTLOG
|
||||||
if [ -f $QBTLOG ];
|
if [ -f $QBTLOG ];
|
||||||
then
|
then
|
||||||
echo "Logfile created. Logging to $QBTLOG"
|
echo "Logfile created. Logging to $QBTLOG"
|
||||||
@ -74,6 +74,7 @@ do_start()
|
|||||||
|
|
||||||
start-stop-daemon --start --chuid $USER:$GROUP --make-pidfile --pidfile $PIDFILE --background --exec /bin/bash -- -c "$DAEMONSTRING" || return 2
|
start-stop-daemon --start --chuid $USER:$GROUP --make-pidfile --pidfile $PIDFILE --background --exec /bin/bash -- -c "$DAEMONSTRING" || return 2
|
||||||
sleep 1
|
sleep 1
|
||||||
|
echo "$NAME started"
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user