27 lines
626 B
SYSTEMD
27 lines
626 B
SYSTEMD
|
[Unit]
|
||
|
Description=Podman container-ects-scraper.service
|
||
|
Wants=network-online.target
|
||
|
After=network-online.target
|
||
|
|
||
|
[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 \
|
||
|
--name=ects-scraper \
|
||
|
-v ects-scraper-cache:/cache:z \
|
||
|
-d \
|
||
|
-p 5467:8000 ects-scraper
|
||
|
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
|