Add start time (in seconds) to the WSGI configuration file
This new variable "start-time" is initialized when the WSGI
starts and is the timestamp in seconds.
Related-Bug: #2083570
Change-Id: I1b984b93d1352683097c1417b22d64341a68f72a
diff --git a/lib/apache b/lib/apache
index 1420f76..1c034d3 100644
--- a/lib/apache
+++ b/lib/apache
@@ -293,6 +293,8 @@
iniset "$conf" uwsgi add-header "Connection: close"
# This ensures that file descriptors aren't shared between processes.
iniset "$conf" uwsgi lazy-apps true
+ # Starting time of the WSGi server
+ iniset "$conf" uwsgi start-time %t
# If we said bind directly to http, then do that and don't start the apache proxy
if [[ -n "$http" ]]; then
@@ -367,6 +369,8 @@
iniset "$conf" uwsgi http-keepalive false
# Increase socket timeout for slow chunked uploads
iniset "$conf" uwsgi socket-timeout 30
+ # Starting time of the WSGi server
+ iniset "$conf" uwsgi start-time %t
enable_apache_mod proxy
enable_apache_mod proxy_http