summaryrefslogtreecommitdiff
path: root/data/templates/container/systemd-unit.j2
blob: fa48384aba3c53f91af035b414a329462aba86ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
### Autogenerated by container.py ###
[Unit]
Description=VyOS Container {{ name }}

[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
Restart=on-failure
ExecStartPre=/bin/rm -f %t/%n.pid %t/%n.cid
ExecStart=/usr/bin/podman run \
        --conmon-pidfile %t/%n.pid --cidfile %t/%n.cid --cgroups=no-conmon \
        {{ run_args }}
ExecStop=/usr/bin/podman stop --ignore --cidfile %t/%n.cid -t 5
ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/%n.cid
ExecStopPost=/bin/rm -f %t/%n.cid
PIDFile=%t/%n.pid
KillMode=none
Type=forking