Skip to content

'persistproc capture': self-managing stdout-tailing process #25

@irskep

Description

@irskep
> postgresql 2>&1 | persistproc capture postgres
Writing logs to /tmp/...
Reporting to persistproc...
<postgresql output>
> persistproc list
PID 56791: postgres
  Command: persistproc capture postgres
  Working directory: <wd of postgresql invocation>

How it works:

  • New tool call track which asks persistproc to track a process without managing it. Args: pid: int, log_path?: string
  • persistproc capture writes lines to a temp directory and reports its pid and log path
  • Update ProcessManager and helper objects to support tracked processes (called "external processes" internally) and custom log paths

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions