Mailinglist Archive: opensuse-bugs (4233 mails)

< Previous Next >
[Bug 1020301] dbus service restart in TW 20170112 update crashed sytemd-logind
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Tue, 17 Jan 2017 11:09:54 +0000
  • Message-id: <bug-1020301-21960-pqrZMlFQHk@http.bugzilla.opensuse.org/>
http://bugzilla.opensuse.org/show_bug.cgi?id=1020301
http://bugzilla.opensuse.org/show_bug.cgi?id=1020301#c7

--- Comment #7 from Martin Wilck <martin.wilck@xxxxxxxx> ---
(In reply to Fabian Vogt from comment #5)
Best way would probably be to disable restarting dbus.service and
dbus.socket completely and only allow reloading.
This would also affect the %postun in turn. However, I have no idea how to
do that.

Like this, maybe?

%define _backup /etc/sysconfig/services.rpmbak.%{name}-%{version}-%{release}

%pre
if [[ "$FIRST_ARG" -gt 1 ]]; then
[...]
if [[ -f /etc/sysconfig/services ]]; then
cp -a /etc/sysconfig/services %{_backup}
else
touch %{_backup}
fi
cat >>/etc/sysconfig/services <<EOF
# temporarily added by rpm update to avoid dbus service restart
# backup saved in /etc/sysconfig/services.rpmbak.%{name}
DISABLE_RESTART_ON_UPDATE="yes"
EOF
fi

%posttrans
if [[ -s %{_backup} ]]; then
mv -f %{_backup} /etc/sysconfig/services
elif [[ -e %{_backup} ]]; then
rm -f /etc/sysconfig/services
fi

--
You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >
References