diff --git a/fir_ser/api/management/commands/services/services/base.py b/fir_ser/api/management/commands/services/services/base.py index 850f921..882d5f4 100644 --- a/fir_ser/api/management/commands/services/services/base.py +++ b/fir_ser/api/management/commands/services/services/base.py @@ -157,6 +157,8 @@ class BaseService(object): print(f'Stop service: {self.name}', end='') sig = 9 if force else 15 + if self.name == 'uwsgi' and sig == 15: + sig = 2 os.kill(self.pid, sig) if self.process is None: diff --git a/fir_ser/api/management/commands/services/services/uwsgi.py b/fir_ser/api/management/commands/services/services/uwsgi.py index 96466eb..3a0db98 100644 --- a/fir_ser/api/management/commands/services/services/uwsgi.py +++ b/fir_ser/api/management/commands/services/services/uwsgi.py @@ -30,6 +30,7 @@ class UwsgiService(BaseService): '--buffer-size', '65536', '--vacuum', '--enable-threads', + '--master', ] if self.uwsgi_socket_mode: