update service for oneshot

Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2018-03-13 23:21:43 -05:00
parent f944450f9e
commit f97125c39e
No known key found for this signature in database
GPG Key ID: 9443251A787B9FB3

View File

@ -61,16 +61,18 @@ MemoryAccounting={{ systemd_MemoryAccounting }}
TasksAccounting={{ systemd_TasksAccounting }} TasksAccounting={{ systemd_TasksAccounting }}
{% endif %} {% endif %}
{% if service_type != 'oneshot' %}
# Set Sandboxing # Set Sandboxing
{% if item.program_sandboxing is defined %} {% if item.program_sandboxing is defined %}
{% for key, value in item.program_sandboxing.items() %} {% for key, value in item.program_sandboxing.items() %}
{{ key }}={{ value }} {{ key }}={{ value }}
{% endfor %} {% endfor %}
{% else %} {% else %}
PrivateTmp={{ systemd_PrivateTmp }} PrivateTmp={{ systemd_PrivateTmp }}
PrivateDevices={{ systemd_PrivateDevices }} PrivateDevices={{ systemd_PrivateDevices }}
PrivateNetwork={{ systemd_PrivateNetwork }} PrivateNetwork={{ systemd_PrivateNetwork }}
PrivateUsers={{ systemd_PrivateUsers }} PrivateUsers={{ systemd_PrivateUsers }}
{% endif %}
{% endif %} {% endif %}
[Install] [Install]