Hello community, here is the log from the commit of package multipath-tools for openSUSE:Factory checked in at 2012-11-06 16:14:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/multipath-tools (Old) and /work/SRC/openSUSE:Factory/.multipath-tools.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "multipath-tools", Maintainer is "hare@suse.com" Changes: -------- --- /work/SRC/openSUSE:Factory/multipath-tools/multipath-tools.changes 2012-07-18 17:33:56.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.multipath-tools.new/multipath-tools.changes 2012-11-06 16:14:04.000000000 +0100 @@ -1,0 +2,6 @@ +Sun Aug 26 02:05:37 UTC 2012 - crrodriguez@opensuse.org + +- Systemd: use default service type instead of forking +- Systemd: fix spec pre/post scripts. + +------------------------------------------------------------------- New: ---- mpath-tools-service.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ multipath-tools.spec ++++++ --- /var/tmp/diff_new_pack.aZfrNy/_old 2012-11-06 16:14:05.000000000 +0100 +++ /var/tmp/diff_new_pack.aZfrNy/_new 2012-11-06 16:14:05.000000000 +0100 @@ -33,6 +33,12 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build Patch0: %{name}-%{version}-opensuse-12.2.diff.bz2 Patch1: 0002-fix-installation-of-multipath-rule.patch +Patch2: mpath-tools-service.patch +%if 0%{?suse_version} >= 1210 +BuildRequires: systemd +%{?systemd_requires} +%define has_systemd 1 +%endif %description This package provides the tools to manage multipathed devices by @@ -74,7 +80,7 @@ %setup -q -n multipath-tools-%{version} %patch0 -p1 %patch1 -p1 - +%patch2 %build make CC="%__cc" OPTFLAGS="$RPM_OPT_FLAGS" LIB=%_lib @@ -85,18 +91,24 @@ rm $RPM_BUILD_ROOT/%_lib/libmpathpersist.so %clean -[ "$RPM_BUILD_ROOT" != / ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; +rm -rf $RPM_BUILD_ROOT; %pre [ -f /.buildenv ] && exit 0 if [ -f /etc/init.d/multipathd ] && dmsetup --target multipath table | grep -q multipath ; then /etc/init.d/multipathd stop +%if 0%{?has_systemd} +%service_add_pre multipathd.service +%endif fi %post [ -f /.buildenv ] && exit 0 if dmsetup --target multipath table | grep -q multipath ; then /etc/init.d/multipathd start +%if 0%{?has_systemd} +%service_add_post multipathd.service +%endif fi [ -x /sbin/mkinitrd_setup ] && mkinitrd_setup if [ -e /var/lib/no_initrd_recreation_by_suspend ]; then @@ -112,6 +124,9 @@ %preun %stop_on_removal multipathd +%if 0%{?has_systemd} +%service_del_preun multipathd.service +%endif %postun [ -x /sbin/mkinitrd_setup ] && mkinitrd_setup @@ -122,6 +137,10 @@ /sbin/mkinitrd fi +%if 0%{?has_systemd} +%service_del_postun multipathd.service +%endif + %{insserv_cleanup} %files ++++++ mpath-tools-service.patch ++++++ --- multipathd/multipathd.service.orig +++ multipathd/multipathd.service @@ -4,9 +4,7 @@ Before=iscsi.service iscsid.service After=syslog.target [Service] -Type=forking -PIDFile=/var/run/multipathd.pid -ExecStart=/sbin/multipathd +ExecStart=/sbin/multipathd -d ExecReload=/sbin/multipathd reconfigure #ExecStop=/path/to/scrip delete-me if not necessary -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org