File grafana.service of Package grafana-container

[Unit]
Description=grafana daemon container
Documentation=https://build.opensuse.org/package/show/SUSE:ALP:Workloads/grafana-container
After=network-online.target
Wants=network-online.target
StartLimitIntervalSec=40
StartLimitBurst=5

[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
Restart=on-failure
RestartSec=1s
TimeoutStopSec=70
Environment=GRAFANA_IMAGE_PATH=registry.opensuse.org/suse/alp/workloads/tumbleweed_containerfiles/suse/alp/workloads/grafana:latest
Environment=CONFIG_DIR=/etc/
EnvironmentFile=-/etc/grafana-container.conf
ExecStartPre=-/usr/bin/podman run --env IMAGE=${GRAFANA_IMAGE_IMAGE} --rm --privileged -v /:/host ${GRAFANA_IMAGE_PATH} /bin/bash /container/label-install
ExecStartPre=-/usr/bin/podman create --name grafana --network host ${GRAFANA_IMAGE_PATH}
ExecStart=/usr/bin/podman start grafana
ExecStop=/usr/bin/podman stop grafana
ExecStopPost=/usr/bin/podman rm grafana
Type=notify
NotifyAccess=all

[Install]
WantedBy=multi-user.target
openSUSE Build Service is sponsored by