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 /templates | |
parent | b2f44d4832a771dde6ebea86f70811de8b4c1f26 (diff) |
Manage resource limits of services (#13)
User can configure resource limits for services started by systemd
Diffstat (limited to 'templates')
-rw-r--r-- | templates/limits.erb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/limits.erb b/templates/limits.erb new file mode 100644 index 0000000..3caf586 --- /dev/null +++ b/templates/limits.erb @@ -0,0 +1,26 @@ +# This file is created by Puppet +[Service] +<% +[ + 'LimitCPU', + 'LimitFSIZE', + 'LimitDATA', + 'LimitSTACK', + 'LimitCORE', + 'LimitRSS', + 'LimitNOFILE', + 'LimitAS', + 'LimitNPROC', + 'LimitMEMLOCK', + 'LimitLOCKS', + 'LimitSIGPENDING', + 'LimitMSGQUEUE', + 'LimitNICE', + 'LimitRTPRIO', + 'LimitRTTIME' +].each do |d| +if @limits[d] -%> +<%= d %>=<%= @limits[d] %> +<% +end +end %> |