Skip to content
Snippets Groups Projects
Commit 6e8caa09 authored by Guido Günther's avatar Guido Günther
Browse files

restart libvirt daemon on upgrades if possible

Closes: #492694, #499008
parent 208c924c
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,15 @@ case "$1" in
if ! getent group libvirt >/dev/null; then
addgroup --system libvirt
fi
# libvirt from 0.6.0 on is safe to restart with running vms:
if [ -n "$2" ] && dpkg --compare-versions "$2" ge 0.6.0; then
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d libvirt-bin stop
else
/etc/init.d/libvirt-bin stop
fi
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment