mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-06 13:41:28 +00:00
-propagate-touch
This commit is contained in:
@@ -95,7 +95,12 @@ void *simple_loop(void *arg1) {
|
||||
#ifdef __APPLE__
|
||||
kill(uwsgi.workers[0].pid, SIGTERM);
|
||||
#else
|
||||
greacefully_kill(0);
|
||||
if (uwsgi.propagate_touch) {
|
||||
kill(uwsgi.workers[0].pid, SIGHUP);
|
||||
}
|
||||
else {
|
||||
gracefully_kill(0);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
return NULL;
|
||||
|
||||
@@ -129,6 +129,7 @@ static struct option long_base_options[] = {
|
||||
{"reload-on-as", required_argument, 0, LONG_ARGS_RELOAD_ON_AS},
|
||||
{"reload-on-rss", required_argument, 0, LONG_ARGS_RELOAD_ON_RSS},
|
||||
{"touch-reload", required_argument, 0, LONG_ARGS_TOUCH_RELOAD},
|
||||
{"propagate-touch", no_argument, &uwsgi.propagate_touch, 1},
|
||||
{"limit-post", required_argument, 0, LONG_ARGS_LIMIT_POST},
|
||||
{"no-orphans", no_argument, &uwsgi.no_orphans, 1},
|
||||
{"prio", required_argument, 0, LONG_ARGS_PRIO},
|
||||
|
||||
Reference in New Issue
Block a user