Make init more consistent with s6v3 standard

This commit is contained in:
TheSpad 2022-10-10 22:14:57 +01:00
parent 60df08ba86
commit d97b2e7d4a
No known key found for this signature in database
GPG key ID: 08F06191F4587860
9 changed files with 4 additions and 3 deletions

View file

@ -4,8 +4,9 @@
mkdir -p /config/qBittorrent
# copy default config
[[ ! -e /config/qBittorrent/qBittorrent.conf ]] && \
if [[ ! -f /config/qBittorrent/qBittorrent.conf ]]; then
cp /defaults/qBittorrent.conf /config/qBittorrent/qBittorrent.conf
fi
# chown download directory if currently not set to abc
if [[ -d /downloads ]]; then

View file

@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-qbittorrent-config/run

View file

@ -1 +0,0 @@
/etc/s6-overlay/s6-rc.d/init-qbittorrent/run

View file

@ -3,5 +3,5 @@
WEBUI_PORT=${WEBUI_PORT:-8080}
exec \
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z 127.0.0.1 ${WEBUI_PORT}" \
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost ${WEBUI_PORT}" \
s6-setuidgid abc /usr/bin/qbittorrent-nox --webui-port="${WEBUI_PORT}"