aboutsummaryrefslogtreecommitdiff
path: root/rpkid/portal-gui
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2013-04-26 20:22:01 +0000
committerRob Austein <sra@hactrn.net>2013-04-26 20:22:01 +0000
commit0e071680dd9340d6c043ae08c974ba319dbd0e52 (patch)
treec9a269e51d571bc88a05df8c36a83e23c05df6de /rpkid/portal-gui
parent63778293fffbaa50f175da2d652d85a8ff3da832 (diff)
Loading setproctitle dumps core when running under WSGI and Apache, so
don't try. Closes #520. svn path=/trunk/; revision=5310
Diffstat (limited to 'rpkid/portal-gui')
-rw-r--r--rpkid/portal-gui/rpki.wsgi7
1 files changed, 7 insertions, 0 deletions
diff --git a/rpkid/portal-gui/rpki.wsgi b/rpkid/portal-gui/rpki.wsgi
index 37bed594..a01bf8f7 100644
--- a/rpkid/portal-gui/rpki.wsgi
+++ b/rpkid/portal-gui/rpki.wsgi
@@ -25,6 +25,13 @@ os.environ['DJANGO_SETTINGS_MODULE'] = 'rpki.gui.default_settings'
# needed for local_settings.py
sys.path.insert(1, rpki.autoconf.sysconfdir + '/rpki')
+# Kludge to disable use of setproctitle in rpki.log. For reasons
+# unknown, at least on Ubuntu 12.04 LTS, we dump core with a segment
+# violation if we try to load that module in this process, even though
+# it works fine in other processes on the same system. Not yet sure
+# what this is about, just disable setproctitle in WSGI case for now.
+os.environ['DISABLE_SETPROCTITLE'] = 'yes'
+
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()