[Unit] Description=Podman container-hass-app.service Wants=network-online.target After=network-online.target RequiresMountsFor=%t/containers BindsTo=pod-home-assistant.service After=pod-home-assistant.service Requires=container-hass-mosquitto.service After=container-hass-mosquitto.service Requires=container-hass-zigbee2mqtt.service After=container-hass-zigbee2mqtt.service Requires=container-hass-postgres.service After=container-hass-postgres.service [Service] Environment=PODMAN_SYSTEMD_UNIT=%n Restart=on-failure TimeoutStopSec=70 ExecStartPre=/bin/rm -f %t/%n.ctr-id ExecStart=/usr/bin/podman run --cidfile=%t/%n.ctr-id --cgroups=no-conmon --rm --sdnotify=conmon --replace -d \ --name="hass-app" \ --pod-id-file %t/pod-home-assistant.pod-id \ -v hass-app:/config:Z \ -v /home/hass/.ssh:/root/.ssh:z \ --tz=Europe/Brussels \ #--privileged \ -e TZ=Europe/Brussels \ --label "io.containers.autoupdate=registry" \ --net=host \ docker.io/homeassistant/raspberrypi4-64-homeassistant:stable ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id Type=notify NotifyAccess=all [Install] WantedBy=default.target