Move the ulimit settings inside the systemd unit.
This commit is contained in:
parent
1a3c99b5eb
commit
971c7828ff
|
@ -1,7 +1,9 @@
|
|||
{% if tomcat_use_systemd %}
|
||||
{% if limits_nofile_value is defined %}
|
||||
ulimit -Hn {{ limits_nofile_value }}
|
||||
ulimit -Sn {{ limits_nofile_value }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
TOMCAT_USER={{ item.user }}
|
||||
TOMCAT_GROUP={{ item.user }}
|
||||
JAVA_HOME={{ item.java_home }}
|
||||
|
|
|
@ -10,6 +10,9 @@ StartLimitBurst=5
|
|||
RequiresMountsFor={{ tomcat_m_instances_logdir_base }}/{{ item.http_port }} {{ item.instance_path }}
|
||||
|
||||
[Service]
|
||||
{% if limits_nofile_value is defined %}
|
||||
LimitNOFILE={{ limits_nofile_value }}
|
||||
{% endif %}
|
||||
Environment="CATALINA_HOME=/usr/share/tomcat{{ tomcat_version }}"
|
||||
Environment="CATALINA_BASE={{ item.instance_path }}"
|
||||
Environment="CATALINA_TMPDIR={{ item.catalina_tmp_directory }}"
|
||||
|
|
Loading…
Reference in New Issue