Created attachment 211400 [details]
send sigterm in munged_stop() to stop munged daemon
The rc script stops the munged daemon via kill -9. This prevents munged from cleaning up, writing its prng seedfile, and removing its socket/lockfile/pidfile.
Update munged_stop() to simply send SIGTERM to stop munged. The subsequent sleep is also unnecessary. Patch attached. Tested on 11.3-RELEASE-p6 and 12.1-RELEASE-p2.
A commit references this bug:
Date: Wed Feb 12 22:00:06 UTC 2020
New revision: 525976
security/munge: Fix rc script
Submitted by: email@example.com