aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2019-11-13 22:55:32 +0100
committerJakub Jirutka <jakub@jirutka.cz>2019-11-13 23:03:50 +0100
commited0227bbb0fe08370d867cd56e60a28f6dfa318c (patch)
tree9ac9d59ceaf803e5acdd1d581eac1550285c9bbc
parent5c124b8898f87bce04bb22acd1852b00daf77f99 (diff)
downloadaports-ed0227bbb0fe08370d867cd56e60a28f6dfa318c.tar.gz
aports-ed0227bbb0fe08370d867cd56e60a28f6dfa318c.tar.bz2
aports-ed0227bbb0fe08370d867cd56e60a28f6dfa318c.tar.xz
main/uwsgi: set --wait for start-stop-daemon to 200 by default
To fix problem when uWSGI immediatelly after the start fails, but OpenRC doesn't recognize it.
-rw-r--r--main/uwsgi/APKBUILD4
-rw-r--r--main/uwsgi/uwsgi.initd3
2 files changed, 4 insertions, 3 deletions
diff --git a/main/uwsgi/APKBUILD b/main/uwsgi/APKBUILD
index 04741198bf..fea8a69b9b 100644
--- a/main/uwsgi/APKBUILD
+++ b/main/uwsgi/APKBUILD
@@ -4,7 +4,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=uwsgi
pkgver=2.0.18
-pkgrel=0
+pkgrel=1
pkgdesc="uWSGI application container server"
url="http://projects.unbit.it/uwsgi/"
arch="all"
@@ -209,7 +209,7 @@ _plugin() {
}
sha512sums="6561703279bcc4a81311d033810ac066d0f113bab13b0942f3eef86cac29c584a6641b52476840d6895151aee5ed064ae2d03b18932cf7f47e62f4eeed76da61 uwsgi-2.0.18.tar.gz
-63137d45437e00deb970d66e2abddf7f235636b748f6cf545f54ff5557066c2a71db5c4a3bab2edceb4e65d3d7fac887f1f4c0e77658127e02b64d3026780b4c uwsgi.initd
+3467644e8b4fd05b3b6a769fb47d93cd1f9339294a187d023b75ba0a582544f18d22885d4e8a1351b39a023a3ed47bbf89ab24e3424fb2f04dc7d7399c815f13 uwsgi.initd
370202e143d0e041a2e36905346080d3ca592c9a74705a8c4e142a1307d22b921c10e673d683ca284ea27d184474ed86edd7723a6e590d35a562ad7cf6afa529 uwsgi.ini
2798c9d2e49e29292ffe6a5a29b866301c78d5f322fc5d07dfa9569efdaa5220237a5f6744652fbdd957be29311ddaff190541333f042cbf0e907dfa98ce3e2a readme.emperor
f3cff00926929a5bb40afafb65fd5228582af35fbf524562282020c4c4ae9c659231b2381f4b3cceb18e8f3f6c888c21bdd8ed4ddcd81e92fbc6a0891800ce38 alpine.buildconf
diff --git a/main/uwsgi/uwsgi.initd b/main/uwsgi/uwsgi.initd
index 69ab2da193..95821babca 100644
--- a/main/uwsgi/uwsgi.initd
+++ b/main/uwsgi/uwsgi.initd
@@ -6,6 +6,7 @@
# variable uwsgi_opts or config file specified by variable uwsgi_conf.
: ${pidfile:="/run/$RC_SVCNAME/uwsgi.pid"}
+: ${wait:=200} # milliseconds
extra_started_commands='reload stats'
description_reload='Gracefully reload all the workers and the master process'
@@ -14,7 +15,7 @@ description_stats='Dump uWSGI statistics to log file'
command='/usr/sbin/uwsgi'
command_args="--die-on-term ${uwsgi_opts:-}"
command_background='yes'
-start_stop_daemon_args='--quiet'
+start_stop_daemon_args="--quiet --wait $wait"
retry='INT/30/KILL/5'
if [ "$RC_SVCNAME" = 'uwsgi' ]; then