You must login to view /lordwelch/podman-static/commit/e8116dd4182498a083dab5c1c155bdb40836f749?files=conf%2Fsystemd.
The GitHub option should be usable for most people, it only links via username.

Files
podman-static/conf/systemd/podman-restart.service
2023-04-08 00:59:45 +02:00

17 lines
483 B
Desktop File

[Unit]
Description=Podman Start All Containers With Restart Policy Set To Always
Documentation=man:podman-start(1)
StartLimitIntervalSec=0
Wants=network-online.target
After=network-online.target
[Service]
Type=oneshot
RemainAfterExit=true
Environment=LOGGING="--log-level=info"
ExecStart=podman $LOGGING start --all --filter restart-policy=always
ExecStop=/bin/sh -c 'podman $LOGGING stop $(podman container ls --filter restart-policy=always -q)'
[Install]
WantedBy=default.target