diff options
author | Rurik Ylä-Onnenvuori <ruriky@users.noreply.github.com> | 2016-10-31 13:03:21 +0100 |
---|---|---|
committer | Raphaël Pinson <github+aem1eeshi1@raphink.net> | 2016-10-31 13:03:21 +0100 |
commit | ec94e54f14c214a5423681e90b99d6e73094bfeb (patch) | |
tree | ebafae5277deb51aba355ee94516899626f5d5ba /README.md | |
parent | b2f44d4832a771dde6ebea86f70811de8b4c1f26 (diff) |
Manage resource limits of services (#13)
User can configure resource limits for services started by systemd
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -58,3 +58,24 @@ file { '/etc/tmpfiles.d/foo.conf': } ~> Exec['systemd-tmpfiles-create'] ``` + +### service limits + +Manage soft and hard limits on various resources for executed processes. + +```puppet +::systemd::service_limits { 'foo.service': + limits => { + LimitNOFILE => 8192, + LimitNPROC => 16384 + } +} +``` + +Or provide the configuration file yourself. Systemd reloading and restarting of the service are handled by the module. + +```puppet +::systemd::service_limits { 'foo.service': + source => "puppet:///modules/${module_name}/foo.conf", +} +``` |