Skip to content

Environment Variables not appearing for redis-server process in /proc/<pid>/environ #5329

@abh1kg

Description

@abh1kg

While this is not a big issue, I would like to understand the following behavior:

  1. I run the following steps to start up the redis-server (in daemon mode according to the "daemonize" parameter in the config file:
export MY_ENV_VAR=abcd
export ANOTHER=bcde

redis-server /path/to/redis.conf
  1. I try to view the environment variables for the process by inspecting /proc/<pid>/environ on UBUNTU. However, I don't see anything there.

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