mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 09:01:38 +00:00
add logger function
This commit is contained in:
parent
774ba43d4b
commit
33ba46315a
|
@ -1,8 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
source /scripts/utils.sh
|
||||
trap 'sigterm' SIGTERM
|
||||
|
||||
gc_cron &
|
||||
start_server &
|
||||
start_socat &
|
||||
logger &
|
||||
keep_running
|
|
@ -38,6 +38,11 @@ function gc_cron {
|
|||
service cron start
|
||||
fi
|
||||
}
|
||||
|
||||
function logger {
|
||||
tail -f /opt/seafile/logs/common.log | tee /proc/1/fd/1
|
||||
}
|
||||
|
||||
function keep_running {
|
||||
while true; do
|
||||
tail -f /dev/null & wait ${!}
|
||||
|
|
Loading…
Reference in a new issue