You've already forked prometheus-x509-certificate-exporter-rpm
Initial Commit
This commit is contained in:
18
src/systemd.service
Normal file
18
src/systemd.service
Normal file
@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=Prometheus exporter for x509 certificate metrics
|
||||
Requires=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=-/etc/conf.d/prometheus-x509-certificate-exporter
|
||||
ExecStart=/usr/bin/prometheus-x509-certificate-exporter $EXTRA_ARGS
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
User=root
|
||||
Group=root
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
|
||||
NoNewPrivileges=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user