update service for oneshot
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
parent
f944450f9e
commit
f97125c39e
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user