[Bug 819914] New: acpid does not stop during shutdown causing delay
https://bugzilla.novell.com/show_bug.cgi?id=819914 https://bugzilla.novell.com/show_bug.cgi?id=819914#c0 Summary: acpid does not stop during shutdown causing delay Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: Other OS/Version: openSUSE 12.3 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: arvidjaar@gmail.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- Created an attachment (id=539259) --> (http://bugzilla.novell.com/attachment.cgi?id=539259) systemd debug log of system shutdown User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0 During shutdown acpid does not stop. This causes delay on shutdown/reboot. Here is relevant part of debug log (full output attached): [95319.774268] systemd[1]: Installed new job acpid.service/stop as 2283 [95319.838329] systemd[1]: Merged into installed job acpid.service/stop as 2283 [95323.232067] systemd[1]: Stopping ACPI Event Daemon... [95323.232113] systemd[1]: About to execute /bin/kill -s QUIT $MAINPID [95323.232418] systemd[1]: Forked /bin/kill as 29947 [95323.238150] systemd[1]: acpid.service changed running -> stop [95323.240468] systemd[1]: Received SIGCHLD from PID 29947 (kill). [95323.240506] systemd[1]: Got SIGCHLD for process 29947 (kill) [95323.240618] systemd[1]: Child 29947 died (code=exited, status=0/SUCCESS) [95323.240622] systemd[1]: Child 29947 belongs to acpid.service [95323.240631] systemd[1]: acpid.service: control process exited, code=exited status=0 [95323.242215] systemd[1]: acpid.service got final SIGCHLD for state stop [95323.242347] systemd[1]: acpid.service changed stop -> stop-sigterm [95413.242536] systemd[1]: acpid.service stopping timed out. Killing. [95413.243301] systemd[1]: acpid.service changed stop-sigterm -> stop-sigkill [95413.243341] systemd[1]: Running GC... [95413.256551] systemd[1]: Received SIGCHLD from PID 728 (acpid). [95413.256622] systemd[1]: Got SIGCHLD for process 728 (acpid) [95413.256802] systemd[1]: Child 728 died (code=killed, status=9/KILL) [95413.256813] systemd[1]: Child 728 belongs to acpid.service [95413.256836] systemd[1]: acpid.service: main process exited, code=killed, status=9/KILL [95413.257091] systemd[1]: acpid.service changed stop-sigkill -> failed [95413.259099] systemd[1]: Job acpid.service/stop finished, result=done [95413.259148] systemd[1]: Stopped ACPI Event Daemon. [95413.259170] systemd[1]: Unit acpid.service entered failed state [95413.259279] systemd[1]: Stopping Basic System. Manually running "systemctl stop acpid" in run level 5 works. Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=819914
https://bugzilla.novell.com/show_bug.cgi?id=819914#c1
David Kerkhof
https://bugzilla.novell.com/show_bug.cgi?id=819914
https://bugzilla.novell.com/show_bug.cgi?id=819914#c2
--- Comment #2 from David Kerkhof
https://bugzilla.novell.com/show_bug.cgi?id=819914
https://bugzilla.novell.com/show_bug.cgi?id=819914#c
Ye Yuan
https://bugzilla.novell.com/show_bug.cgi?id=819914
https://bugzilla.novell.com/show_bug.cgi?id=819914#c3
Thomas Renninger
https://bugzilla.novell.com/show_bug.cgi?id=819914
https://bugzilla.novell.com/show_bug.cgi?id=819914#c4
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=819914
https://bugzilla.novell.com/show_bug.cgi?id=819914#c5
--- Comment #5 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=819914
https://bugzilla.novell.com/show_bug.cgi?id=819914#c6
--- Comment #6 from Cristian Rodríguez
I found something that solves for me the delay. It's a hack but until there is a better solution. I commented out the line: ExecStop=/bin/kill -s QUIT $MAINPID in /usr/lib/systemd/system/acpid.service Since I did this I rebooted and shut down many times and did not see the delay anymore. I don't know if there is any drawback with this solution, doesn't seem to do any harm
If you omit ExecStop systemd just sends SIGTERM , if the process is still around after "TimeoutSec=" it sends SIGKILL. as SIGTERM is handled by the same routine as SIGQUIT it effectively does the same thing. While this indeed needs fixing (read, make acpid to use signalfd(2)) dare I ask why you have acpid installed ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=819914
https://bugzilla.novell.com/show_bug.cgi?id=819914#c7
--- Comment #7 from Cristian Rodríguez
https://bugzilla.novell.com/show_bug.cgi?id=819914
https://bugzilla.novell.com/show_bug.cgi?id=819914#c8
--- Comment #8 from David Kerkhof
https://bugzilla.novell.com/show_bug.cgi?id=819914
https://bugzilla.novell.com/show_bug.cgi?id=819914#c9
Benjamin Brunner
https://bugzilla.novell.com/show_bug.cgi?id=819914
https://bugzilla.novell.com/show_bug.cgi?id=819914#c10
--- Comment #10 from Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com