Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#44045 - [rng-tools] systemd service timeouts on stopping

Attached to Project: Community Packages
Opened by Abdó Roig-Maranges (abdo) - Wednesday, 04 March 2015, 15:12 GMT
Last edited by Massimiliano Torromeo (mtorromeo) - Thursday, 05 March 2015, 11:11 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Massimiliano Torromeo (mtorromeo)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Since last rng-tools update (5-2), the systemd service timeouts at stopping. It seems rngd ignores SIGTERM and only when systemd timeouts and sends SIGKILL the service gets stopped.

This was not an issue when starting rngd as Type=simple, as before 5-2. The easy fix would be reverting that change, or alternatively figure out why rngd ignores SIGTERM and use the proper signal.


Steps to reproduce:
Start and stop rngd 5-2 service. The stop will block for 90s until systemd timeouts and sends SIGKILL.
This task depends upon

Closed by  Massimiliano Torromeo (mtorromeo)
Thursday, 05 March 2015, 11:11 GMT
Reason for closing:  Fixed
Additional comments about closing:  rng-tools-5-3
Comment by John M (iefbr14) - Thursday, 05 March 2015, 00:13 GMT
I'm experiencing the same problem here with 5.2 - daemon is ignoring SIGTERM.

I did a little digging and found this gkernel bug-report for rng-tools:

http://sourceforge.net/p/gkernel/bugs/135/

Attached to the bug-report (above) is a patch that causes rngd to properly respond to SIGTERM when running as a daemon.

Compiled it up and tested. It works for me.
Comment by Massimiliano Torromeo (mtorromeo) - Thursday, 05 March 2015, 11:11 GMT
Thanks for the patch, looks good.

Loading...