优化uwsgi 启动服务

publicsignpoll
youngS 3 years ago
parent e34ca43cfc
commit 1a9cae8cb7
  1. 2
      fir_ser/api/management/commands/services/services/base.py
  2. 1
      fir_ser/api/management/commands/services/services/uwsgi.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:

@ -30,6 +30,7 @@ class UwsgiService(BaseService):
'--buffer-size', '65536',
'--vacuum',
'--enable-threads',
'--master',
]
if self.uwsgi_socket_mode:

Loading…
Cancel
Save