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