Docker v527

This commit is contained in:
Hydrus Network Developer 2023-05-09 16:59:55 -05:00
parent 5846b03e07
commit 1d2a3f2143
No known key found for this signature in database
GPG Key ID: 76249F053212133C
2 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ stderr_logfile_maxbytes=0
environment=DISPLAY=":89",HOME=/opt/hydrus
user=hydrus
directory=/opt/hydrus
command=python3 /opt/hydrus/client.py --db_dir %(ENV_DB_DIR)s %(ENV_HYDRUS_EXTRA)s
command=python3 /opt/hydrus/hydrus_client.py --db_dir %(ENV_DB_DIR)s %(ENV_HYDRUS_EXTRA)s
startretries=89
autostart=true
autorestart=true

View File

@ -6,11 +6,11 @@ GROUP_ID=${GID}
echo "Starting Hydrus with UID/GID : $USER_ID/$GROUP_ID"
stop() {
python3 /opt/hydrus/server.py stop -d="/opt/hydrus/db"
python3 /opt/hydrus/hydrus_server.py stop -d="/opt/hydrus/db"
}
trap "stop" SIGTERM
su-exec ${USER_ID}:${GROUP_ID} python3 /opt/hydrus/server.py -d="/opt/hydrus/db" &
su-exec ${USER_ID}:${GROUP_ID} python3 /opt/hydrus/hydrus_server.py -d="/opt/hydrus/db" &
wait $!