Summary: | systemctl try-restart hangs indefinitely on required service | ||
---|---|---|---|
Product: | systemd | Reporter: | Mathieu Bridon <bochecha> |
Component: | general | Assignee: | Lennart Poettering <lennart> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | nick.jones |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Mathieu Bridon
2011-08-04 02:02:59 UTC
So, running systemd in debug mode, here is what appears in kmsg when I run the try-restart command: [ 119.608142] systemd[1]: Accepted connection on private bus. [ 119.609325] systemd[1]: Got D-Bus request: org.freedesktop.systemd1.Manager.TryRestartUnit() on /org/freedesktop/systemd1 [ 119.609346] systemd[1]: Trying to enqueue job foobar.service/try-restart/replace [ 119.609379] systemd[1]: Installed new job foobar.service/try-restart as 274 [ 119.609395] systemd[1]: Installed new job totoplouf.service/try-restart as 275 [ 119.609415] systemd[1]: Enqueued job foobar.service/try-restart as 274 [ 119.610249] systemd[1]: totoplouf.service changed running -> stop-sigterm [ 119.611277] systemd[1]: Received SIGCHLD from PID 784 (infinite_loop). [ 119.611412] systemd[1]: Got SIGCHLD for process 784 (infinite_loop) [ 119.611843] systemd[1]: Child 784 died (code=killed, status=15/TERM) [ 119.611855] systemd[1]: Child 784 belongs to totoplouf.service [ 119.611877] systemd[1]: totoplouf.service: main process exited, code=killed, status=15 [ 119.612561] systemd[1]: totoplouf.service changed stop-sigterm -> dead [ 119.613311] systemd[1]: Converting job totoplouf.service/restart -> totoplouf.service/start [ 119.614253] systemd[1]: Got D-Bus request: org.freedesktop.systemd1.Manager.GetUnit() on /org/freedesktop/systemd1 [ 119.614445] systemd[1]: Received SIGCHLD from PID 786 (sleep). [ 119.614572] systemd[1]: Got SIGCHLD for process 786 (sleep) [ 119.614805] systemd[1]: Child 786 died (code=killed, status=15/TERM) [ 119.615217] systemd[1]: Got D-Bus request: org.freedesktop.DBus.Properties.Get() on /org/freedesktop/systemd1/unit/foobar_2eservice [ 119.618429] systemd[1]: Accepted connection on private bus. [ 119.621404] systemd[1]: Got D-Bus request: org.freedesktop.systemd1.Agent.Released() on /org/freedesktop/systemd1/agent [ 119.621563] systemd[1]: totoplouf.service: cgroup is empty [ 119.621869] systemd[1]: Got D-Bus request: org.freedesktop.DBus.Local.Disconnected() on /org/freedesktop/DBus/Local Note that this is pretty bad as try-restart is run during %post on yum update, so if it hangs, the whole yum process waits on it, and if the user kills it, he ends up with an unfinished yum transaction and a potentially broken system. I just realized that I had forgotten one detail: this issue happens both with try-restart and restart. Hmm, indeed. I guess there's a bug to fix here. Fixed in git now. Thanks! |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.