diff --git a/qbittorrent/rootfs/etc/services.d/qbittorrent/timer b/qbittorrent/rootfs/etc/services.d/qbittorrent/timer index ae7d61d58..b3da8f6e5 100644 --- a/qbittorrent/rootfs/etc/services.d/qbittorrent/timer +++ b/qbittorrent/rootfs/etc/services.d/qbittorrent/timer @@ -8,11 +8,11 @@ if bashio::config.true 'openvpn_enabled'; then & bashio::log.info "Addon will stop after $RUNTIME" && \ sleep $RUNTIME && \ bashio::log.info "Timeout achieved, addon will stop !" && \ - exit 0 + exec ./finish else exec s6-setuidgid abc /usr/bin/qbittorrent-nox --webui-port="${WEBUI_PORT}" \ & bashio::log.info "Addon will stop after $RUNTIME" && \ sleep $RUNTIME && \ bashio::log.info "Timeout achieved, addon will stop !" && \ - exit 0 + exec ./finish fi