File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -147,8 +147,7 @@ def reconfigure(self, setup_ssl):
147
147
if "1.4" in misc .getoutput ("{0} -v" .format (self .exe )):
148
148
nginx_tmplt = conf_manager .NGINX_14_CONF_TEMPLATE
149
149
params = {'galaxy_user_name' : paths .GALAXY_USER_NAME ,
150
- 'nginx_conf_dir' : self .conf_dir ,
151
- }
150
+ 'nginx_conf_dir' : self .conf_dir }
152
151
if setup_ssl :
153
152
log .debug ("Using Nginx v1.4+ template w/ SSL" )
154
153
# Generate a self-signed certificate
@@ -249,9 +248,9 @@ def status(self):
249
248
"""
250
249
# Check if nginx config needs to be reconfigured
251
250
aa = self .app .manager .service_registry .all_active (names = True )
252
- for s in self .app .manager .service_registry .all_active (names = True ):
253
- if s not in self .proxied_services :
254
- aa .remove (s )
251
+ for s in self .app .manager .service_registry .all_active ():
252
+ if s . name not in self .proxied_services or not s . running () :
253
+ aa .remove (s . name )
255
254
if set (self .active_proxied ) != set (aa ):
256
255
# There was a service change, run reconfigure
257
256
self .active_proxied = aa
You can’t perform that action at this time.
0 commit comments