You must login to view /lordwelch/sshrimp/commit/00de39955700c156e3d9fdd70a34b3ac35630f14?files=internal.
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