Browse Source

solves #153

Add master = true to uwsgi.ini
Yann Weber 8 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
 module = plugins.webui.run
4
 module = plugins.webui.run
5
 chmod-socket = 666
5
 chmod-socket = 666
6
 vacuum = true
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
             continue
286
             continue
287
         pid = pids[name]
287
         pid = pids[name]
288
         try:
288
         try:
289
-            os.kill(pid, signal.SIGINT)
289
+            os.kill(pid, signal.SIGTERM)
290
         except ProcessLookupError:
290
         except ProcessLookupError:
291
             logging.warning("The instance %s seems to be in error, no process \
291
             logging.warning("The instance %s seems to be in error, no process \
292
 with pid %d found" % (name, pids[name]))
292
 with pid %d found" % (name, pids[name]))

Loading…
Cancel
Save