Browse Source

solves #153

Add master = true to uwsgi.ini
Yann Weber 7 years ago
parent
commit
14ec5a0b66
2 changed files with 3 additions and 2 deletions
  1. 2
    1
      plugins/webui/uwsgi/uwsgi.ini
  2. 1
    1
      progs/slim/slim.py

+ 2
- 1
plugins/webui/uwsgi/uwsgi.ini View File

@@ -4,4 +4,5 @@ plugin = python3
4 4
 module = plugins.webui.run
5 5
 chmod-socket = 666
6 6
 vacuum = true
7
-die-on-term = true #enable sigterm for killing
7
+die-on-term = true
8
+master = true

+ 1
- 1
progs/slim/slim.py View File

@@ -286,7 +286,7 @@ def stop_instances(names):
286 286
             continue
287 287
         pid = pids[name]
288 288
         try:
289
-            os.kill(pid, signal.SIGINT)
289
+            os.kill(pid, signal.SIGTERM)
290 290
         except ProcessLookupError:
291 291
             logging.warning("The instance %s seems to be in error, no process \
292 292
 with pid %d found" % (name, pids[name]))

Loading…
Cancel
Save