mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-17 11:10:22 +00:00
nextcloud - add stop_grace_period of 600s
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
dffbe978a0
commit
14e8996e90
2 changed files with 15 additions and 1 deletions
|
|
@ -1,7 +1,20 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
|
wait_for_cron() {
|
||||||
|
set -x
|
||||||
|
while [ -n "$(pgrep -f /var/www/html/cron.php)" ]; do
|
||||||
|
echo "Waiting for cron to stop..."
|
||||||
|
sleep 5
|
||||||
|
done
|
||||||
|
echo "Cronjob successfully exited."
|
||||||
|
set +x
|
||||||
|
}
|
||||||
|
|
||||||
|
trap wait_for_cron SIGINT SIGTERM
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
php -f /var/www/html/cron.php &
|
php -f /var/www/html/cron.php &
|
||||||
sleep 5m
|
sleep 5m &
|
||||||
|
wait $!
|
||||||
done
|
done
|
||||||
|
|
|
||||||
|
|
@ -205,6 +205,7 @@
|
||||||
"TALK_RECORDING_HOST=nextcloud-aio-talk-recording",
|
"TALK_RECORDING_HOST=nextcloud-aio-talk-recording",
|
||||||
"FULLTEXTSEARCH_PASSWORD=%FULLTEXTSEARCH_PASSWORD%"
|
"FULLTEXTSEARCH_PASSWORD=%FULLTEXTSEARCH_PASSWORD%"
|
||||||
],
|
],
|
||||||
|
"stop_grace_period": 600,
|
||||||
"restart": "unless-stopped",
|
"restart": "unless-stopped",
|
||||||
"devices": [
|
"devices": [
|
||||||
"/dev/dri"
|
"/dev/dri"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue