[systemd-devel] systemd "hangs" for several minutes on shutdown if it gets "service force-reload" request

Andrey Borzenkov arvidjaar at gmail.com
Wed Dec 1 11:55:13 PST 2010


In Mandriva we are using {ifup,ifdown}.d script for callouts. One
package install script that - in both cases - does "service vnstat
force-reload". During shutdown it is causing interesting effect - this
request hangs which causing network service (that indirectly calls it)
to hang as well and be finally killed:

systemd[1]: Got D-Bus request:
org.freedesktop.DBus.Local.Disconnected() on
/org/freedesktop/DBus/Local
systemd[1]: Got D-Bus request:
org.freedesktop.systemd1.Agent.Released() on
/org/freedesktop/systemd1/agent
systemd[1]: systemd-kmsg-syslogd.service: cgroup is empty
systemd[1]: Got D-Bus request:
org.freedesktop.DBus.Local.Disconnected() on
/org/freedesktop/DBus/Local
systemd[1]: Got D-Bus request:
org.freedesktop.systemd1.Manager.ReloadOrTryRestartUnit() on
/org/freedesktop/systemd1
systemd[1]: Trying to enqueue job vnstat.service/reload/replace
systemd[1]: Installed new job vnstat.service/reload as 162
systemd[1]: Enqueued job vnstat.service/reload as 162
systemd[1]: Got D-Bus request:
org.freedesktop.DBus.Local.Disconnected() on
/org/freedesktop/DBus/Local
systemd[1]: Got D-Bus request:
org.freedesktop.systemd1.Manager.ReloadOrTryRestartUnit() on
/org/freedesktop/systemd1
systemd[1]: Trying to enqueue job vnstat.service/reload/replace
systemd[1]: Enqueued job vnstat.service/reload as 162
systemd[1]: Got D-Bus request:
org.freedesktop.systemd1.Manager.GetUnit() on
/org/freedesktop/systemd1
systemd[1]: Got D-Bus request:
org.freedesktop.systemd1.Manager.GetUnit() on
/org/freedesktop/systemd1
systemd[1]: Got D-Bus request: org.freedesktop.DBus.Properties.Get()
on /org/freedesktop/systemd1/unit/vnstat_2eservice
systemd[1]: Got D-Bus request: org.freedesktop.DBus.Properties.Get()
on /org/freedesktop/systemd1/unit/vnstat_2eservice
systemd[1]: network.service stopping timed out. Terminating.
systemd[1]: network.service changed stop -> stop-sigterm

What I wonder in this case, why vnstat.service/reload appears to hang
in this case? The job itself fails during startup (initscript is
disabled, so it gets indirect request from ifup and does nothing):

ystemd[1]: Accepted connection on private bus.
systemd[1]: Got D-Bus request:
org.freedesktop.systemd1.Manager.ReloadOrTryRestartUnit() on
/org/freedesktop/systemd1
systemd[1]: Trying to enqueue job vnstat.service/reload/replace
systemd[1]: Installed new job vnstat.service/reload as 85
systemd[1]: Enqueued job vnstat.service/reload as 85
systemd[1]: Job vnstat.service/reload finished, success=no


This is with initscripts/systemctl glue active.


More information about the systemd-devel mailing list