Univention Bugzilla – Bug 34321
uvmmd-check.sh uses "kill" instead of "kill -9"
Last modified: 2014-03-17 13:00:09 CET
+++ This bug was initially created as a clone of Bug #33741 +++ The check tries to kill the process with "kill" - I watched this behavior in a big customer environment - unfortunately "kill" wasn't enought due to FUTEX. I'd suggest to use "kill -9" here.
Since "runit" is in between, perhaps "force-stop" and/or "force-restart" should be used. (man 8 sv) FYI: non-runit-init-scripts use something like this: start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5
The 'kill' command mentioned in comment 0 refers to the script uvmmd-check.sh. The script tries to determine the uvmm_d_ status by executing an uvmm command and waiting for its output. As the uvmm command writes and reads from the uvmm_d_ socket, it can easily be 'kill'ed. Uvmm_d_ is then restarted by calling its initscript. Here, the uvmm_d_ that does not terminate because of a blocking FUTEX. The initscript now uses force-restart and force-stop: univention-virtual-machine-manager-daemon 3.0.17-6.489.201403131114 2014-03-13-univention-virtual-machine-manager-daemon.yaml
OK: Upgrade OK: sed -i '/signal.SIGTERM/s/signal_handler_terminate/signal.SIG_IGN/' /usr/sbin/univention-virtual-machine-manager-daemon kill -STOP $(</etc/runit/univention-virtual-machine-manager-daemon/supervise/pid) bash -x /etc/init.d/univention-virtual-machine-manager-daemon restart # terminates with old and new version kill -STOP $(</etc/runit/univention-virtual-machine-manager-daemon/supervise/pid) bash -x /etc/init.d/univention-virtual-machine-manager-daemon restart # only terminates with new version OK: $EDITOR /usr/lib/univention-virtual-machine-manager-daemon/uvmmd-check.sh exec >>"$logfile" 2>&1 set -x kill -STOP $(</etc/runit/univention-virtual-machine-manager-daemon/supervise/pid) tail -f /var/log/univention/virtual-machine-manager-daemon-errors.log + echo 'uvmm-check.sh: uvmm does not response like expected. Restarting uvmmd now.' + invoke-rc.d univention-virtual-machine-manager-daemon restart === 21194 === Thu, 13 Mar 2014 16:18:24 +0100 === OK: r48485 RFA r48488: s/support blocked processes/handle blocked UVMMd processes./ OK: announce_errata -V 2014-03-13-univention-virtual-machine-manager-daemon.yaml
(In reply to Philipp Hahn from comment #3) > RFA r48488: s/support blocked processes/handle blocked UVMMd processes./ r48548: yaml wording improved
http://errata.univention.de/ucs/3.2/71.html