Skip to content

Commit

Permalink
Merge pull request #210 from navidys/rpm_spec_update
Browse files Browse the repository at this point in the history
rpm spec update
  • Loading branch information
navidys authored Mar 16, 2024
2 parents 02d9b61 + 8a15bfe commit b34fe3e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contrib/systemd/prometheus-podman-exporter.service
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
Description=Prometheus exporter for podman (v4) machine
[Service]
Restart=on-failure
ExecStart=/usr/bin/prometheus-podman-exporter --collector.enable-all
EnvironmentFile=-/etc/sysconfig/prometheus-podman-exporter
ExecStart=/usr/bin/prometheus-podman-exporter $PODMAN_EXPORTER_OPTS
ExecReload=/bin/kill -HUP $MAINPID
TimeoutStopSec=20s
SendSIGKILL=no
Expand Down
1 change: 1 addition & 0 deletions contrib/systemd/prometheus-podman-exporter.sysconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PODMAN_EXPORTER_OPTS="--collector.enable-all"
2 changes: 2 additions & 0 deletions prometheus-podman-exporter.spec.rpkg
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ install -dp %{buildroot}%{_bindir}
install -dp %{buildroot}%{_unitdir}
install -dp %{buildroot}%{_userunitdir}
install -p ./bin/%{name} %{buildroot}%{_bindir}
install -Dpm0644 ./contrib/systemd/%{name}.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/%{name}
install -Dpm0644 ./contrib/systemd/%{name}.service %{buildroot}%{_unitdir}/%{name}.service
install -Dpm0644 ./contrib/systemd/%{name}.service %{buildroot}%{_userunitdir}/%{name}.service

Expand All @@ -82,6 +83,7 @@ popd
%doc README.md MAINTAINERS.md SECURITY.md CONTRIBUTING.md CODE_OF_CONDUCT.md
%{_bindir}/%{name}
%{_bindir}/%{shortname}
%{_sysconfdir}/sysconfig/%{name}
%{_unitdir}/%{name}.service
%{_unitdir}/%{shortname}.service
%{_userunitdir}/%{name}.service
Expand Down

0 comments on commit b34fe3e

Please sign in to comment.