Skip to content
This repository was archived by the owner on May 24, 2022. It is now read-only.
This repository was archived by the owner on May 24, 2022. It is now read-only.

stud.init, wrong PID when "no DH parameters found" #114

Open

Description

@ibc

The init script provided by stun retrieves the daemonized process PID as follows:

out=`${prefix} ${STUD} ${opts} 2>&1`

...

stud_pid=`echo "${out}" | tail -n 1 | cut -d " " -f5 | tr -d '.'`

But depending on the provided certificate, the first line printed to stdout by the daemonized stud process is:

{core} Note: no DH parameters found in PATH_TO_CERT_FILE

and therefore the retrieved PID would be wrong (or null).

Activity

  1. ibc commented on Jul 25, 2012

    @ibc
    Author

    NOTE: the line {core} Note: no DH parameters found in PATH_TO_CERT_FILE is sent to stderr. However the init scripts previously does 2>&1 and therefore such a line would be redirected to the stdout and thus captured by the tail command as the first line => PID wont be retrieved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions