mirror of
https://github.com/clearlinux/koji-setup-scripts.git
synced 2026-04-28 11:03:50 +00:00
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:
committed by
George T Kramer
parent
2db86c73a5
commit
796cf8b064
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user