mirror of
https://github.com/imtbl/hydrus-server-docker
synced 2024-09-29 08:51:37 +13:00
13 lines
134 B
Bash
13 lines
134 B
Bash
#!/bin/sh
|
|
|
|
source venv/bin/activate
|
|
|
|
stop() {
|
|
./server.py stop -d="/data"
|
|
}
|
|
|
|
trap "stop" SIGTERM
|
|
|
|
./server.py -d="/data" &
|
|
|
|
wait $!
|