Skip to content

/var/run is deprecated in Ubuntu 20.04 #4

@aranhoide

Description

@aranhoide

The focal fossa version of this package has the following lines in the redis-server.service file:

PIDFile=/var/run/redis/redis-server.pid
[...]
ReadWriteDirectories=-/var/run/redis

The use of /var/run is deprecated in Ubuntu 20.04, and something in systemd aggressively changes that to /run in the PIDFile section with a warning, but fails to update the ReadWriteDirectories entry, so it runs into permission issues trying to create the PID file (P.S.: I was referring to the Operation not permitted error mentioned below, but this happens even after fixing this, so it may be unrelated). I have checked that changing both occurrences of /var/run to just /run removes the warning (P.S.: I still get a systemd[1]: redis-server.service: Can't open PID file /run/redis/redis-server.pid (yet?) after start: Operation not permitted warning at the beginning, but the server runs fine apparently so this may be a transient problem?).

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