From ec94e54f14c214a5423681e90b99d6e73094bfeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rurik=20Yl=C3=A4-Onnenvuori?= Date: Mon, 31 Oct 2016 13:03:21 +0100 Subject: Manage resource limits of services (#13) User can configure resource limits for services started by systemd --- templates/limits.erb | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 templates/limits.erb (limited to 'templates') 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 %> -- cgit v1.2.3