Updated service unit template for neater output

This commit is contained in:
Xan Manning 2019-11-03 15:35:32 +00:00
parent d81d41e709
commit 2b8f354a88

View File

@ -7,6 +7,7 @@ After=network.target
Type={{ 'notify' if k3s_control_node else 'exec' }}
ExecStartPre=-/sbin/modprobe br_netfilter
ExecStartPre=-/sbin/modprobe overlay
{% filter regex_replace('\s+', ' ') %}
{% filter replace('\n', ' ') %}
ExecStart={{ k3s_install_dir }}/k3s
{% if k3s_control_node %}
@ -78,6 +79,7 @@ ExecStart={{ k3s_install_dir }}/k3s
{% endfor %}
{% endif %}
{% endfilter %}
{% endfilter %}
KillMode=process
Delegate=yes