mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 09:01:38 +00:00
2a176d2d12
Exits container if seafile-server or socat exits. Exits the container after scheduled garbage collection. These changes allow a clean restart with deterministic behaviour. It is recommended to set the restart policy for the container to "unless-stopped".
19 lines
198 B
Bash
19 lines
198 B
Bash
#!/bin/bash
|
|
|
|
source /scripts/utils.sh
|
|
trap 'sigterm' SIGTERM
|
|
|
|
rm -f /tmp/gc_active
|
|
|
|
gc_cron
|
|
start_server &
|
|
start_socat &
|
|
logger &
|
|
|
|
wait -n
|
|
|
|
while [ -f /tmp/gc_active ]; do
|
|
sleep 10
|
|
done
|
|
|
|
exit $? |