mirror of
https://github.com/imtbl/hydrus-server-docker
synced 2024-06-13 08:04:54 +12:00
14 lines
131 B
Bash
14 lines
131 B
Bash
#!/bin/bash
|
|
|
|
. venv/bin/activate
|
|
|
|
stop() {
|
|
./server.py stop -d="/data"
|
|
}
|
|
|
|
trap "stop" SIGTERM
|
|
|
|
./server.py -d="/data" &
|
|
|
|
wait $!
|