Skip to content

systemd unit ulimit bug #339

@brownc

Description

@brownc

Re-raising #321 as unfortunately this was closed associated with some bits that didn't quite fix the fault.

Consider this snippet from a chef role:

chef_type:           role
default_attributes:
  redisio:
    default_settings:
      ulimit:                50000

When Chef converges, on a CentOS 7 system with systemd, you get the following in your systemd unit file:

[Unit]
Description=Redis persistent key-value database
After=network.target

[Service]
ExecStart=/usr/bin/redis-server /etc/redis/%i.conf --daemonize no
ExecStop=/usr/bin/redis-shutdown
User=redis
Group=redis
LimitNOFILE=10032

[Install]
WantedBy=multi-user.target

The two don't match due to a variable issue within the template of providers/configure.rb.

#338 pull request is open to resolve this issue based on most recent merges to master

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions