Next: , Previous: , Up: Transports   [Contents]


6.3.3 process-transport

Oneshot exec (no shell).

Mandatory: <command>, <user>, <timeout-ms> (> 0).

<transport id="helper" plugin="process-transport">
  <command>/usr/local/bin/fetch-status</command>
  <arg>--json</arg>
  <user>nobody</user>
  <timeout-ms>5000</timeout-ms>
  <mode>read</mode>
  <poll-cron>0 0 * * * *</poll-cron>
</transport>
command

Executable path (no shell).

arg

Repeatable argv element.

user

After fork, the child drops privileges to this account.

timeout-ms

On expiry the child is killed; the transport reports an error.

mode

read (default): capture stdout until EOF, wait for exit. write: write the payload to stdin, close stdin, wait for exit.

workdir

Optional working directory.

poll-cron

Optional for read.

Stderr is logged, never mixed into the data payload. Non-zero exit status is an error.

Tip: this plugin is for helpers that exit quickly (print JSON and quit). To poll them forever, add <poll-cron>. It will not keep a daemon child running; use systemd plus HTTP/adapter/file if you need a permanent process (see Configuration Tips).