Ver Fonte

Expose more info from getAllConfigInfo

This lets clients know more about what the current settings are that
supervisord is using, which might be different from what's in the config
files on disk, if the files have changed recently and a `supervisorctl
update` hasn't been done yet.
Marc Abramowitz há 9 anos atrás
pai
commit
6e97e20b3b
1 ficheiros alterados com 22 adições e 0 exclusões
  1. 22 0
      supervisor/rpcinterface.py

+ 22 - 0
supervisor/rpcinterface.py

@@ -549,7 +549,29 @@ class SupervisorNamespaceRPCInterface:
             for pconfig in gconfig.process_configs:
             for pconfig in gconfig.process_configs:
                 configinfo.append(
                 configinfo.append(
                     { 'name': pconfig.name,
                     { 'name': pconfig.name,
+                      'command': pconfig.command,
                       'group': gconfig.name,
                       'group': gconfig.name,
+                      'stopsignal': pconfig.stopsignal,
+                      'startretries': pconfig.startretries,
+                      'startsecs': pconfig.startsecs,
+                      'autostart': pconfig.autostart,
+                      'exitcodes': pconfig.exitcodes,
+                      'stopwaitsecs': pconfig.stopwaitsecs,
+                      'killasgroup': pconfig.killasgroup,
+                      'stdout_events_enabled': pconfig.stdout_events_enabled,
+                      'stdout_capture_maxbytes': pconfig.stdout_capture_maxbytes,
+                      'stdout_syslog': pconfig.stdout_syslog,
+                      'stdout_logfile': pconfig.stdout_logfile,
+                      'stdout_logfile_maxbytes': pconfig.stdout_logfile_maxbytes,
+                      'stdout_logfile_backups': pconfig.stdout_logfile_backups,
+
+                      'stderr_events_enabled': pconfig.stderr_events_enabled,
+                      'stderr_capture_maxbytes': pconfig.stderr_capture_maxbytes,
+                      'stderr_syslog': pconfig.stderr_syslog,
+                      'stderr_logfile': pconfig.stderr_logfile,
+                      'stderr_logfile_maxbytes': pconfig.stderr_logfile_maxbytes,
+                      'stderr_logfile_backups': pconfig.stderr_logfile_backups,
+                      'redirect_stderr': pconfig.redirect_stderr,
                       'inuse': inuse,
                       'inuse': inuse,
                       'autostart': pconfig.autostart,
                       'autostart': pconfig.autostart,
                       'group_prio': gconfig.priority,
                       'group_prio': gconfig.priority,