Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Create pidfile and "bpm pid" command #11

Merged
merged 4 commits into from
May 20, 2021
Merged

Create pidfile and "bpm pid" command #11

merged 4 commits into from
May 20, 2021

Commits on May 18, 2021

  1. Create pidfile and "bpm pid" command

    Some drain scripts send signals directly to the process via the
    PID from the pidfile (because bpm doesn't have a mechanism to
    send e.g. a USR1 signal). This obviously only works when the drain
    runs inside the same container as the process itself.
    
    This commit maintains a pid file at the /var/vcap/sys/run/bpm/$JOB/$PORC.pid
    location and also implements the `bpm pid` command to access it.
    
    Signed-off-by: Jan Dubois <[email protected]>
    jandubois committed May 18, 2021
    Configuration menu
    Copy the full SHA
    56b96db View commit details
    Browse the repository at this point in the history
  2. Regenerate mocks because of interface changes

    Signed-off-by: Jan Dubois <[email protected]>
    jandubois committed May 18, 2021
    Configuration menu
    Copy the full SHA
    48da065 View commit details
    Browse the repository at this point in the history
  3. Update tests to pass in pid

    The pid is unused by the rest of the tests, so for now just set
    it to 0.
    
    Signed-off-by: Jan Dubois <[email protected]>
    jandubois committed May 18, 2021
    Configuration menu
    Copy the full SHA
    77ebe22 View commit details
    Browse the repository at this point in the history

Commits on May 19, 2021

  1. Configuration menu
    Copy the full SHA
    0048d5a View commit details
    Browse the repository at this point in the history