29 lines
955 B
Desktop File
29 lines
955 B
Desktop File
[Unit]
|
|
Description=Podman %n
|
|
Documentation=man:podman-generate-systemd(1)
|
|
After={{ services_deploy_pod_oneshot_after | join(" ") }}
|
|
{% if services_deploy_pod_oneshot_before %}
|
|
Before={{ services_deploy_pod_oneshot_before | join(" ") }}
|
|
{% endif %}
|
|
OnFailure=status-mail@%n.service
|
|
|
|
[Service]
|
|
Environment=PODMAN_SYSTEMD_UNIT=%n
|
|
TimeoutStopSec=70
|
|
ExecStartPre=/bin/rm -f %t/%N.pid %t/%N.ctr-id
|
|
ExecStart=/usr/bin/podman run \
|
|
--conmon-pidfile %t/%N.pid \
|
|
--cidfile %t/%N.ctr-id \
|
|
--cgroups=no-conmon \
|
|
--pod-id-file %t/pod-cloud.pod-id \
|
|
--replace \
|
|
{% for podman_run_arg in (services_deploy_pod_oneshot.podman_run_args | default([])) %}
|
|
{{ podman_run_arg }} \
|
|
{% endfor %}
|
|
--name=%N \
|
|
{{ services_deploy_pod_oneshot.image }}{%
|
|
for cmd_arg in (services_deploy_pod_oneshot.cmd_args | default([])) %} \
|
|
{{ cmd_arg }}{% endfor %}{{ '' }}
|
|
ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/%N.ctr-id
|
|
Type=oneshot
|