Drop the sysv -> systemd init script conversion
The pcsc-lite systemd support was introduced in F16 and we are now at F19. Drop the sysv -> systemd conversion; direct F15 -> F19 upgrades are unsupported.
This commit is contained in:
parent
804118d1ca
commit
2c8ae8fcbd
@ -15,7 +15,6 @@ BuildRequires: graphviz
|
|||||||
BuildRequires: systemd-devel
|
BuildRequires: systemd-devel
|
||||||
BuildRequires: systemd-units
|
BuildRequires: systemd-units
|
||||||
|
|
||||||
Requires(post): systemd-sysv
|
|
||||||
Requires(post): systemd-units
|
Requires(post): systemd-units
|
||||||
Requires(preun): systemd-units
|
Requires(preun): systemd-units
|
||||||
Requires(postun): systemd-units
|
Requires(postun): systemd-units
|
||||||
@ -109,24 +108,6 @@ if [ $1 -ge 1 ] ; then
|
|||||||
/bin/systemctl try-restart pcscd.service >/dev/null 2>&1 || :
|
/bin/systemctl try-restart pcscd.service >/dev/null 2>&1 || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%triggerun -- pcsc-lite < 1.7.4-2
|
|
||||||
# Save the current service runlevel info
|
|
||||||
# User must manually run systemd-sysv-convert --apply pcscd
|
|
||||||
# to migrate them to systemd targets
|
|
||||||
%{_bindir}/systemd-sysv-convert --save pcscd >/dev/null 2>&1 ||:
|
|
||||||
|
|
||||||
# Enable pcscd socket activation
|
|
||||||
/bin/systemctl enable pcscd.socket >/dev/null 2>&1 || :
|
|
||||||
|
|
||||||
# Run these because the SysV package being removed won't do them
|
|
||||||
/sbin/chkconfig --del pcscd >/dev/null 2>&1 || :
|
|
||||||
|
|
||||||
# Restart the service if it's already running
|
|
||||||
if /bin/systemctl is-active pcscd.service >/dev/null 2>&1 ; then
|
|
||||||
/bin/systemctl stop pcscd.service >/dev/null 2>&1 ||:
|
|
||||||
/bin/systemctl start pcscd.socket pcscd.service >/dev/null 2>&1 ||:
|
|
||||||
fi
|
|
||||||
|
|
||||||
%post libs -p /sbin/ldconfig
|
%post libs -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun libs -p /sbin/ldconfig
|
%postun libs -p /sbin/ldconfig
|
||||||
|
Loading…
Reference in New Issue
Block a user