move *.service files to subdirectory container and add service file for standalone operations in standalone

This commit is contained in:
Thomas Peetz
2026-05-04 15:02:41 +02:00
parent b256e20491
commit d8914627a3
14 changed files with 16 additions and 1 deletions
+45
View File
@@ -0,0 +1,45 @@
# kontor-echo.service
# autogenerated by Podman 4.9.3
# Sun Apr 19 16:28:14 CEST 2026
[Unit]
Description=Podman kontor-echo.service
Documentation=man:podman-generate-systemd(1)
Wants=network-online.target
After=network-online.target
RequiresMountsFor=%t/containers
BindsTo=pod-kontor.service
After=pod-kontor.service
[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
Restart=on-failure
TimeoutStopSec=70
ExecStart=/usr/bin/podman run \
--cidfile=%t/%n.ctr-id \
--cgroups=no-conmon \
--rm \
--pod-id-file %t/pod-kontor.pod-id \
--sdnotify=conmon \
-d \
--replace \
--name kontor-echo \
--label io.containers.autoupdate=local \
--label PODMAN_SYSTEMD_UNIT=kontor-echo.service \
--health-cmd="curl -f http://kontor-echo:8400/health || exit 1" \
--health-interval=1s \
--health-timeout=5s \
--health-retries=10 \
localhost/kontor-echo:0.3.0
ExecStop=/usr/bin/podman stop \
--ignore -t 10 \
--cidfile=%t/%n.ctr-id
ExecStopPost=/usr/bin/podman rm \
-f \
--ignore -t 10 \
--cidfile=%t/%n.ctr-id
Type=notify
NotifyAccess=all
[Install]
WantedBy=default.target