- Drop EnvironmentFile from the service definition

- Explicitly unset $ARGS environment variable. Setting environment
  variables should be done in drop-in systemd configuration files.
- Drop go_nostrip macro. It is not needed with current binutils and
  Go.

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/golang-github-lusitaniae-apache_exporter?expand=0&rev=33
This commit is contained in:
Witek Bedyk
2024-08-19 08:17:25 +00:00
committed by Git OBS Bridge
commit 29b66bb847
11 changed files with 429 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
[Unit]
Description=Prometheus exporter for Apache metrics
Documentation=https://github.com/lusitaniae/apache_exporter
[Service]
Restart=always
User=prometheus
Environment=ARGS=
ExecStart=/usr/bin/prometheus-apache_exporter $ARGS
ExecReload=/bin/kill -HUP $MAINPID
TimeoutStopSec=20s
SendSIGKILL=no
# 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
[Install]
WantedBy=multi-user.target