feat(docker): Change keep-alive strategy to runit, add aria2 log support (#791)

This commit is contained in:
huancun _-
2025-07-24 09:19:33 +08:00
committed by GitHub
parent d9debb81ad
commit afb043e1d6
3 changed files with 33 additions and 11 deletions

View File

@@ -5,15 +5,7 @@ umask ${UMASK}
if [ "$1" = "version" ]; then
./openlist version
else
if [ "$RUN_ARIA2" = "true" ]; then
chown -R ${PUID}:${PGID} /opt/aria2/
exec su-exec ${PUID}:${PGID} nohup aria2c \
--enable-rpc \
--rpc-allow-origin-all \
--conf-path=/opt/aria2/.aria2/aria2.conf \
>/dev/null 2>&1 &
fi
chown -R ${PUID}:${PGID} /opt/openlist/
exec su-exec ${PUID}:${PGID} ./openlist server --no-prefix
exec su-exec ${PUID}:${PGID} runsvdir /opt/service
fi