fix libdir in systemd service file

This commit is contained in:
Tom "spot" Callaway 2011-09-13 13:28:28 -04:00
parent 72d6eb491d
commit 1bffe558cd
2 changed files with 6 additions and 2 deletions

View File

@ -4,7 +4,7 @@ After=syslog.target
[Service]
Type=oneshot
ExecStart=/usr/lib64/sa/sa1 --boot
ExecStart=@LIBDIR@/sa/sa1 --boot
RemainAfterExit=yes
[Install]

View File

@ -1,6 +1,6 @@
Name: sysstat
Version: 10.0.2
Release: 1%{?dist}
Release: 2%{?dist}
Summary: The sar and iostat system monitoring commands
License: GPLv2+
Group: Applications/System
@ -44,6 +44,7 @@ mkdir -p %{buildroot}/%{_sysconfdir}/cron.d
install -m 0644 cron/sysstat.crond %{buildroot}/%{_sysconfdir}/cron.d/sysstat
mkdir -p %{buildroot}%{_unitdir}
install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/
sed -i 's|@LIBDIR@|%{_libdir}|g' %{buildroot}%{_unitdir}/sysstat.service
%find_lang %{name}
@ -93,6 +94,9 @@ fi
%{_localstatedir}/log/sa
%changelog
* Tue Sep 13 2011 Tom Callaway <spot@fedoraproject.org> - 10.0.2-2
- fix libdir pathing in systemd service file
* Mon Sep 12 2011 Tom Callaway <spot@fedoraproject.org> - 10.0.2-1
- update to 10.0.2
- convert to systemd