rtas_errd not auto starting on Fedora 17 GA

This commit is contained in:
Lukáš Nykrýn 2012-07-27 09:02:54 +02:00
parent 33f6f4764f
commit d56e6f2bfb
2 changed files with 17 additions and 9 deletions

View File

@ -1,6 +1,6 @@
Name: ppc64-diag Name: ppc64-diag
Version: 2.4.3 Version: 2.4.3
Release: 2%{?dist} Release: 3%{?dist}
Summary: Linux for Power Platform Diagnostics Summary: Linux for Power Platform Diagnostics
URL: http://sourceforge.net/projects/linux-diag/files/ppc64-diag/ URL: http://sourceforge.net/projects/linux-diag/files/ppc64-diag/
Group: System Environment/Base Group: System Environment/Base
@ -11,7 +11,7 @@ BuildRequires: libvpd-devel, systemd-units
Requires: servicelog, lsvpd Requires: servicelog, lsvpd
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: http://downloads.sourceforge.net/project/linux-diag/ppc64-diag/%{version}/%{name}-%{version}.tar.gz Source0: http://downloads.sourceforge.net/project/linux-diag/ppc64-diag/%{version}/%{name}-%{version}.tar.gz
Source1: ppc64-diag.service Source1: rtas_errd.service
Patch0: ppc64-diag-2.4.2-messagecatalog-location.patch Patch0: ppc64-diag-2.4.2-messagecatalog-location.patch
Patch1: ppc64-diag-2.4.2-chkconfig.patch Patch1: ppc64-diag-2.4.2-chkconfig.patch
Patch2: ppc64-diag-2.4.3-scriptlocation.patch Patch2: ppc64-diag-2.4.3-scriptlocation.patch
@ -72,30 +72,38 @@ rm -rf $RPM_BUILD_ROOT
%attr(644,root,root) %{_datadir}/%{name}/message_catalog/with_regex/* %attr(644,root,root) %{_datadir}/%{name}/message_catalog/with_regex/*
%attr(755,root,root) %{_sysconfdir}/rc.powerfail %attr(755,root,root) %{_sysconfdir}/rc.powerfail
%attr(755,root,root) %{_libexecdir}/%{name}/rtas_errd %attr(755,root,root) %{_libexecdir}/%{name}/rtas_errd
%attr(644,root,root) %{_unitdir}/ppc64-diag.service %attr(644,root,root) %{_unitdir}/rtas_errd.service
%post %post
# Post-install script -------------------------------------------------- # Post-install script --------------------------------------------------
%{_libexecdir}/%{name}/ppc64_diag_setup --register >/dev/null %{_libexecdir}/%{name}/ppc64_diag_setup --register >/dev/null
if [ "$1" = "2" ]; then # upgrade if [ "$1" = "1" ]; then # first install
%{_libexecdir}/%{name}/rtas_errd restart systemctl -q enable rtas_errd.service
systemctl start rtas_errd.service
elif [ "$1" = "2" ]; then # upgrade
systemctl restart rtas_errd.service
fi fi
%preun %preun
# Pre-uninstall script ------------------------------------------------- # Pre-uninstall script -------------------------------------------------
if [ "$1" = "0" ]; then # last uninstall if [ "$1" = "0" ]; then # last uninstall
%{_libexecdir}/%{name}/rtas_errd stop systemctl stop rtas_errd.service
systemctl -q disable rtas_errd.service
%{_libexecdir}/%{name}/ppc64_diag_setup --unregister >/dev/null %{_libexecdir}/%{name}/ppc64_diag_setup --unregister >/dev/null
fi fi
%triggerin -- librtas %triggerin -- librtas
# trigger on librtas upgrades ------------------------------------------ # trigger on librtas upgrades ------------------------------------------
if [ "$2" = "2" ]; then if [ "$2" = "2" ]; then
%{_libexecdir}/%{name}/rtas_errd restart systemctl restart rtas_errd.service
fi fi
%changelog %changelog
* Fri Jul 27 2012 Lukáš Nykrýn <lnykryn@redhat.com> - 2.4.3-3
- rename .service file
- auto start rtas_errd (#843471)
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.3-2 * Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

View File

@ -5,8 +5,8 @@ After=syslog.target
[Service] [Service]
Type=forking Type=forking
ExecStart=/usr/libexec/ppc64-diag/rtas_errd.init start ExecStart=/usr/libexec/ppc64-diag/rtas_errd start
ExecStop=/usr/libexec/ppc64-diag/rtas_errd.init stop ExecStop=/usr/libexec/ppc64-diag/rtas_errd stop
StandardOutput=syslog StandardOutput=syslog
StandardError=syslog StandardError=syslog