From 9f7a3528b29555fd33b56c45678d9fd6f88d9da0 Mon Sep 17 00:00:00 2001 From: sneak Date: Mon, 9 Dec 2019 03:55:55 -0800 Subject: [PATCH] adjust startup timing --- rootfs/etc/service/sidekiq/run | 4 ++-- rootfs/etc/service/startup/run | 2 ++ rootfs/etc/service/streaming/run | 4 ++-- rootfs/etc/service/web/run | 5 ++--- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/rootfs/etc/service/sidekiq/run b/rootfs/etc/service/sidekiq/run index 06e1034..f0163f8 100644 --- a/rootfs/etc/service/sidekiq/run +++ b/rootfs/etc/service/sidekiq/run @@ -1,8 +1,8 @@ #!/bin/bash -sleep 2 +sleep 5 while [[ -e /state/.starting ]]; do - sleep 1 + sleep 5 done echo "sidekiq starting..." diff --git a/rootfs/etc/service/startup/run b/rootfs/etc/service/startup/run index 08d306f..68fae14 100644 --- a/rootfs/etc/service/startup/run +++ b/rootfs/etc/service/startup/run @@ -1,6 +1,8 @@ #!/bin/bash touch /state/.starting +sleep 5 + echo "mastodon-startup starting up..." if [[ ! -d /state/envdir ]]; then diff --git a/rootfs/etc/service/streaming/run b/rootfs/etc/service/streaming/run index a7d3595..bda07bf 100644 --- a/rootfs/etc/service/streaming/run +++ b/rootfs/etc/service/streaming/run @@ -1,8 +1,8 @@ #!/bin/bash -sleep 2 +sleep 5 while [[ -e /state/.starting ]]; do - sleep 1 + sleep 5 done echo "streaming starting..." diff --git a/rootfs/etc/service/web/run b/rootfs/etc/service/web/run index 90ccf8f..241dedb 100644 --- a/rootfs/etc/service/web/run +++ b/rootfs/etc/service/web/run @@ -1,13 +1,12 @@ #!/bin/bash -sleep 2 +sleep 5 while [[ -e /state/.starting ]]; do - sleep 1 + sleep 5 done echo "web starting..." - rm -rf \ /mastodon/app/public/system \ /mastodon/app/public/assets \