diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-12-30 22:23:05 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-12-30 22:28:25 +0100 |
commit | 0c8b53e6f7a94e914a7815328bbd16c0b3943d40 (patch) | |
tree | eba692b6f044b54db55fa079f3460b4ed920a38b /data/templates/container/systemd-unit.j2 | |
parent | 4bab998b4e7fe6eca57a3fe9ffba2d2be8f123b2 (diff) | |
download | vyos-1x-0c8b53e6f7a94e914a7815328bbd16c0b3943d40.tar.gz vyos-1x-0c8b53e6f7a94e914a7815328bbd16c0b3943d40.zip |
container: T578: backport podman from 1.4 development branch
Diffstat (limited to 'data/templates/container/systemd-unit.j2')
-rw-r--r-- | data/templates/container/systemd-unit.j2 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/data/templates/container/systemd-unit.j2 b/data/templates/container/systemd-unit.j2 new file mode 100644 index 000000000..fa48384ab --- /dev/null +++ b/data/templates/container/systemd-unit.j2 @@ -0,0 +1,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 |