]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/paks/libvirt/update.sh
Libvirt: Fix update.sh script
[ipfire-2.x.git] / src / paks / libvirt / update.sh
index fd0ca9729b6893d769cfecaf055de6b0750848b4..ab57cbf627a473e507ee356920bab1f1d26766e0 100644 (file)
@@ -63,7 +63,13 @@ chown -R nobody:kvm /var/lib/libvirt/images
 restore_backup ${NAME}
 
 #restart virtlogd to use the new version
+if [ -f "/var/run/virtlogd.pid" ]; then
+# the daemon runs restart him
 /etc/init.d/virtlogd restart
+else
+# the daemon runs not start him
+/etc/init.d/virtlogd start
+fi
 
 start_service --background libvirtd