openSUSE-release-tools/systemd/osrt-relpkggen@.service
Gustavo Yokoyama Ribeiro 9e328db488 Changes to avoid parallel execution issue on SLSA services
- Create custom-cache-tag for pkglistgen to enable separate cache dir
  name in case of parallel running
- Add custom-cache-tag to SLSA services
- Check for systemd service instead of process to ensure that SLSA
  services will not run in parallel
- Change pkglisgen timer to avoid overlap with relpkggen timer
2024-02-15 12:25:42 -03:00

16 lines
466 B
Desktop File

[Unit]
PartOf=osrt-slsa.target
[Service]
User=osrt-slsa
SyslogIdentifier=osrt-slsa
EnvironmentFile=/etc/openSUSE-release-tools/ibsapi
Environment="OSC_CONFIG=/etc/openSUSE-release-tools/oscrc"
WorkingDirectory=/var/lib/osrt-slsa/relpkggen
ExecStartPre=/bin/bash -xc '/usr/bin/systemctl is-active --quiet osrt-pkglistgen@%i.service && exit 1 || exit 0'
ExecStart=/usr/bin/osrt-generate-release-packages %i
RuntimeMaxSec=120 hour
[Install]
WantedBy=osrt-slsa.target