home-pods/pod-nextcloud.service

22 lines
1.0 KiB
SYSTEMD
Raw Normal View History

2022-02-14 18:11:23 +01:00
[Unit]
Description=Podman pod-nextcloud.service
Wants=network-online.target
After=network-online.target
RequiresMountsFor=
Requires=container-nextcloud-fpm.service container-nextcloud-postgres.service container-nextcloud-redis.service container-nextcloud-nginx.service
Before=container-nextcloud-fpm.service container-nextcloud-postgres.service container-nextcloud-redis.service container-nextcloud-nginx.service
[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
Restart=on-failure
TimeoutStopSec=70
ExecStartPre=/bin/rm -f %t/pod-nextcloud.pid %t/pod-nextcloud.pod-id
ExecStartPre=/usr/bin/podman pod create --infra-conmon-pidfile %t/pod-nextcloud.pid --pod-id-file %t/pod-nextcloud.pod-id -p 8678:80 --name nextcloud --replace
ExecStart=/usr/bin/podman pod start --pod-id-file %t/pod-nextcloud.pod-id
ExecStop=/usr/bin/podman pod stop --ignore --pod-id-file %t/pod-nextcloud.pod-id -t 10
ExecStopPost=/usr/bin/podman pod rm --ignore -f --pod-id-file %t/pod-nextcloud.pod-id
PIDFile=%t/pod-nextcloud.pid
Type=forking
[Install]
WantedBy=default.target