Summary: | sys-apps/systemd-207 fails to stop php-fpm@5.5 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | timemars <ruanzhijie> |
Component: | [OLD] Core system | Assignee: | Gentoo systemd Team <systemd> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | canarauc, steffen.weber |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | for 207-r2 | ||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge info of systemd
emerge info of php shutdown-log |
Description
timemars
2013-09-16 07:17:54 UTC
Created attachment 358776 [details]
emerge info of php
I would report to upstream (as we are using the official unit files from php upstream) Created attachment 359212 [details] shutdown-log Since normal reboot or poweroff work, but take a suspiciously long time, I follow the instruction decribed at http://freedesktop.org/wiki/Software/systemd/Debugging/#index2h1, and get the shutdown-log. It seem that it's a systemd bug regarding Type=notify services. Here is the bug upstream: http://lists.freedesktop.org/archives/systemd-devel/2013-September/013334.html Apply that patch solved the issue for me. That kind of bug can drive people nuts :) - http://forums.gentoo.org/viewtopic-t-970180.html We will backport the patch once one gets into systemd git. (In reply to Cănărău Constantin from comment #4) > It seem that it's a systemd bug regarding Type=notify services. Here is the > bug upstream: > http://lists.freedesktop.org/archives/systemd-devel/2013-September/013334. > html > Apply that patch solved the issue for me. > That kind of bug can drive people nuts :) - > http://forums.gentoo.org/viewtopic-t-970180.html this patch works, thanks. But there's still a problem. The patch is said to fix timeout when stopping Type=notify service, yet I notice that rsyslog.service is also a Type=notify service, and it doesn't stuck the reboot/poweroff process. It seems that only some Type=notify services cause timeout when being stopped. (In reply to timemars from comment #6) > this patch works, thanks. But there's still a problem. The patch is said to > fix timeout when stopping Type=notify service, yet I notice that > rsyslog.service is also a Type=notify service, and it doesn't stuck the > reboot/poweroff process. It seems that only some Type=notify services cause > timeout when being stopped. Yes, you are right. I didnt' notice that. But, in the end, I'm happy - everything it's working like a charm again. Thanks a lot for finding the solution :) Temporary workaround that does not require patching systemd: Edit /usr/lib/systemd/system/php-fpm@.service and add "TimeoutStopSec=2" to its "[Service]" section. According to http://www.freedesktop.org/software/systemd/man/systemd.service.html the default is 90 seconds. 208 is in the tree now |