Browse Source

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 9 years ago
parent
commit
6e97e20b3b
1 changed files with 22 additions and 0 deletions
  1. 22 0
      supervisor/rpcinterface.py

+ 22 - 0
supervisor/rpcinterface.py

@@ -549,7 +549,29 @@ class SupervisorNamespaceRPCInterface:
             for pconfig in gconfig.process_configs:
                 configinfo.append(
                     { 'name': pconfig.name,
+                      'command': pconfig.command,
                       '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,
                       'autostart': pconfig.autostart,
                       'group_prio': gconfig.priority,