daemon

Library share/python/lib/daemon.yaml

given there is no "(?P<args>.*)" process

Ensure a given process is not running.

Captures:

given a daemon helper shell script (?P<filename>\S+)

Install a helper script from an embedded file.

Captures:

when I start "(?P<path>\S+)(?P<args>.*)" as a background process as (?P<name>\S+), on port (?P<port>\S+)

Start a process in the background (as a daemon) and wait until it listens on its assigned port.

Captures:

when I start "(?P<path>[^ "]+)(?P<args>[^"]*)" as a background process as (?P<name>[^,]+), on port (?P<port>\d+), with environment (?P<env>.*)

Start a process in the background (as a daemon) and wait until it listens on its assigned port. Remember the process under the given name.

Captures:

when I try to start "(?P<path>\S+)(?P<args>.*)" as (?P<name>\S+), on port (?P<port>\S+)

Try to start a background process (as a daemon), but don’t fail if starting it fails.

Captures:

when I try to start "(?P<path>[^ "]+)(?P<args>[^"]*)" as (?P<name>[^,]+), on port (?P<port>\d+), with environment (?P<env>.*)

Start a process in the background (as a daemon) and wait until it listens on its assigned port. Remember the process under the given name. Don’t fail if this fails.

Captures:

when I start "(?P<path>\S+)(?P<args>.*)" as a background process as (?P<name>\S+)

Start a process in the background (as a daemon). Remember the process under the given name. Don’t fail if this fails.

Captures:

when I start "(?P<path>[^ "]+)(?P<args>[^"]*)" as a background process as (?P<name>[^,]+), with environment (?P<env>.*)

Start a process in the background (as a daemon), with specific environment variables set. Remember the process under the given name. Don’t fail if this fails.

Captures:

when I stop background process (?P<name>\S+)

Stop a background process that was started earlier with the given name.

Captures:

when daemon (?P<name>\S+) has produced output

Wait until the named daemon has produced output to its stdout or stderr.

Captures:

then a process "(?P<args>.*)" is running

Check that a given process is running.

Captures:

then there is no "(?P<args>.*)" process

Check that a given process is not running.

Captures:

then starting daemon fails with "(?P<message>.*)"

Check that starting a daemon previously failed, and the error message contains the given text.

Captures:

then starting the daemon succeeds

Check that staring a daemon previous succeeded.

then daemon (?P<name>\S+) stdout is "(?P<text>.*)"

Check that the named daemon has written exactly the given text to its stdout.

Captures:

then daemon (?P<name>\S+) stdout contains "(?P<text>.*)"

Check that the named daemon has written the given text to its stdout, possibly among other text.

Captures:

then daemon (?P<name>\S+) stdout doesn't contain "(?P<text>.*)"

Check that the named daemon has not written the given text to its stdout.

Captures:

then daemon (?P<name>\S+) stderr is "(?P<text>.*)"

Check that the named daemon has written exactly the given text to its stderr.

Captures: