home-pods/pod-gitea.service

22 lines
869 B
SYSTEMD

[Unit]
Description=Podman pod-gitea.service
Wants=network-online.target
After=network-online.target
RequiresMountsFor=
Requires=container-gitea-app.service container-gitea-postgres.service
Before=container-gitea-app.service container-gitea-postgres.service
[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
Restart=on-failure
TimeoutStopSec=70
ExecStartPre=/bin/rm -f %t/pod-gitea.pid %t/pod-gitea.pod-id
ExecStartPre=/usr/bin/podman pod create --infra-conmon-pidfile %t/pod-gitea.pid --pod-id-file %t/pod-gitea.pod-id -p 8444:3000 -p 2222:22 --name gitea --replace
ExecStart=/usr/bin/podman pod start --pod-id-file %t/pod-gitea.pod-id
ExecStop=/usr/bin/podman pod stop --ignore --pod-id-file %t/pod-gitea.pod-id -t 10
ExecStopPost=/usr/bin/podman pod rm --ignore -f --pod-id-file %t/pod-gitea.pod-id
PIDFile=%t/pod-gitea.pid
Type=forking
[Install]
WantedBy=default.target