diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2019-11-13 22:55:32 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2019-11-13 23:03:50 +0100 |
commit | ed0227bbb0fe08370d867cd56e60a28f6dfa318c (patch) | |
tree | 9ac9d59ceaf803e5acdd1d581eac1550285c9bbc /main/uwsgi/uwsgi.initd | |
parent | 5c124b8898f87bce04bb22acd1852b00daf77f99 (diff) |
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.
Diffstat (limited to 'main/uwsgi/uwsgi.initd')
-rw-r--r-- | main/uwsgi/uwsgi.initd | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/uwsgi/uwsgi.initd b/main/uwsgi/uwsgi.initd index 69ab2da1930..95821babcac 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 |