Docker v527
This commit is contained in:
parent
5846b03e07
commit
1d2a3f2143
|
@ -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
|
||||
|
|
|
@ -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 $!
|
||||
|
|
Loading…
Reference in New Issue