Automatic systemd hardening effort by the security team. This has not been tested. For details please see https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort OBS-URL: https://build.opensuse.org/request/show/926727 OBS-URL: https://build.opensuse.org/package/show/server:monitoring/prometheus-postgres_exporter?expand=0&rev=3
29 lines
742 B
Desktop File
29 lines
742 B
Desktop File
[Unit]
|
|
Description=Prometheus PostgreSQL exporter
|
|
After=postgresql.service
|
|
Wants=postgresql.service
|
|
|
|
[Service]
|
|
# added automatically, for details please see
|
|
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
ProtectSystem=full
|
|
ProtectHome=true
|
|
PrivateDevices=true
|
|
ProtectHostname=true
|
|
ProtectClock=true
|
|
ProtectKernelTunables=true
|
|
ProtectKernelModules=true
|
|
ProtectKernelLogs=true
|
|
ProtectControlGroups=true
|
|
RestrictRealtime=true
|
|
# end of automatic additions
|
|
Restart=always
|
|
User=prometheus
|
|
EnvironmentFile=-/etc/sysconfig/prometheus-postgres_exporter
|
|
ExecStart=/usr/bin/prometheus-postgres_exporter $POSTGRES_EXPORTER_PARAMS
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
TimeoutStopSec=20s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|