TMAegis
postgres için daha fazla kural

PostgreSQL

TMA-POSTGRES-1.3

Ensure systemd Service Files Are Enabled

DüşükDüzey 1Otomatikpostgres

Açıklama

Confirm, and correct if necessary, the PostgreSQL systemd service is enabled. Passes when at least one postgresql* systemd service unit is enabled.

Nasıl denetlenir

Denetim yöntemi: Kabuk komutu

shell
out=$(systemctl list-unit-files --type=service --no-legend 'postgresql*' 2>/dev/null) || exit 1; printf '%s\n' "$out" | awk '$2=="enabled"{e=1} END{print e?"enabled":"not-enabled"}'
Beklenen çıktı
enabled

Nasıl düzeltilir

Düzeltme yöntemi: Kılavuz veya altyapı yaması

Enable the PostgreSQL unit for the default target, e.g. systemctl enable postgresql-18 (PGDG) or systemctl enable postgresql (Debian/Ubuntu), then confirm with systemctl is-enabled.

Özellikler

İşletim sistemleri
Herhangi biri
Etiketler
postgresdatabaseservice
Referans
CIS PostgreSQL 18 Benchmark v1.0.0 - 1.3 Ensure systemd Service Files Are Enabled

Bu ana makineyi denetle

Bunu denetleme izniniz olan bir makinede çalıştırın. Tarama salt okunurdur.

shell
tmaegis scan --target postgres