1

I want to change open file limit for a Riak service in CentOS 7. The problem is that Riak still uses SysV init script.

According to docs i have to create /etc/systemd/system/riak.d/NAME.conf and set the parameter there. Then reload systemd and the service.

 # In /etc/systemd/system/riak.d/limits.conf
 [Service]
 LimitNOFILE=65536

But this has no effect:

$ systemctl show riak -p LimitNOFILE 
LimitNOFILE=4096

What did I do wrong? Does this work for SysV init scripts?

NefariousOctopus
  • 559
  • 1
  • 5
  • 9

1 Answers1

1

I think you need riak.service.d, not riak.d.

Michael Hampton
  • 237,123
  • 42
  • 477
  • 940