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: Wed, 25 Jan 2017 08:51:23 +0000
  • Message-id: <>

--- Comment #11 from Simon Lees <simonf.lees@xxxxxxxx> ---
(In reply to Martin Wilck from comment #7)
(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}

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

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

This is basically what I implemented in you were pretty close but you
need a %global instead of a %define :-).

I have also added "export DISABLE_RESTART_ON_UPDATE=yes" to the postun so we
can drop the more complex code after everyone migrates to a newer version (the
service files were added in the last update which caused the issue)

(In reply to Dominique Leuenberger from comment #9)
RefuseManualStop=true might be an interesting option for the dbus.service

It is a interesting option so i've added it but it doesn't affect this case, it
doesn't block restarting a service only manually stopping.

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