Systemd override for kojira service

Kojira service will often fail to start upon
boot because postgresql is not running yet
This commit is contained in:
Pitterle, Matthew D
2019-10-31 10:38:19 -07:00
committed by George T Kramer
parent 2db86c73a5
commit 796cf8b064

View File

@@ -348,4 +348,11 @@ ca = $KOJI_PKI_DIR/koji_ca_cert.crt
serverca = $KOJI_PKI_DIR/koji_ca_cert.crt
EOF
# Ensure postgresql is started prior to running kojira service
mkdir -p /etc/systemd/system/kojira.service.d
cat > /etc/systemd/system/kojira.service.d/after-postgresql.conf <<EOF
[Unit]
After=postgresql.service
EOF
systemctl enable --now kojira