Fabian Deutsch has uploaded a new change for review.

Change subject: spec: Drop custom libvirt service files
......................................................................

spec: Drop custom libvirt service files

Previously we preovided our own libvirtd service files because they were
missing in older versions of CentOS and Fedora.
But nowadays they are part of them.

The old versions create problems

Change-Id: I09ed730bbf70bcb4d9dcd391fa89c3798fea04aa
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1176048
Signed-off-by: Fabian Deutsch <[email protected]>
---
D libvirtd.service
D libvirtd.upstart
M ovirt-node.spec.in
3 files changed, 0 insertions(+), 76 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/00/36300/1

diff --git a/libvirtd.service b/libvirtd.service
deleted file mode 100644
index 7a4a625..0000000
--- a/libvirtd.service
+++ /dev/null
@@ -1,16 +0,0 @@
-[Unit]
-Description=Virtualization daemon
-After=syslog.target
-After=udev.target
-After=avahi.target
-After=dbus.target
-Before=libvirt-guests.service
-Before=ovirt-post.service
-
-[Service]
-EnvironmentFile=-/etc/sysconfig/libvirtd
-ExecStart= /usr/sbin/libvirtd $LIBVIRTD_ARGS
-ExecReload=/bin/kill -HUP $MAINPID
-
-[Install]
-WantedBy=multi-user.target
diff --git a/libvirtd.upstart b/libvirtd.upstart
deleted file mode 100644
index ef2a8de..0000000
--- a/libvirtd.upstart
+++ /dev/null
@@ -1,44 +0,0 @@
-# libvirtd upstart job
-#
-start on started messagebus
-stop on runlevel [!345]
-
-respawn
-
-script
-    LIBVIRTD_CONFIG=
-    LIBVIRTD_ARGS=
-    KRB5_KTNAME=/etc/libvirt/krb5.tab
-
-    if [ -f /etc/sysconfig/libvirtd ]; then
-        . /etc/sysconfig/libvirtd
-    fi
-
-    export QEMU_AUDIO_DRV
-    export SDL_AUDIODRIVER
-    export KRB5_KTNAME
-
-    LIBVIRTD_CONFIG_ARGS=
-    if [ -n "$LIBVIRTD_CONFIG" ]; then
-        LIBVIRTD_CONFIG_ARGS="--config $LIBVIRTD_CONFIG"
-    fi
-
-    # DAEMON_COREFILE_LIMIT from /etc/sysconfig/libvirtd is not handled
-    # automatically
-    if [ -n "$DAEMON_COREFILE_LIMIT" ]; then
-        ulimit -c "$DAEMON_COREFILE_LIMIT"
-    fi
-
-    # Clean up a pidfile that might be left around
-    rm -f /var/run/libvirtd.pid
-
-    mkdir -p /var/cache/libvirt
-    rm -rf /var/cache/libvirt/*
-
-    exec /usr/sbin/libvirtd $LIBVIRTD_CONFIG_ARGS $LIBVIRTD_ARGS
-end script
-
-post-stop script
-    rm -f $PIDFILE
-    rm -rf /var/cache/libvirt/*
-end script
diff --git a/ovirt-node.spec.in b/ovirt-node.spec.in
index 788c529..e945892 100644
--- a/ovirt-node.spec.in
+++ b/ovirt-node.spec.in
@@ -467,16 +467,6 @@
 %{__install} -d -m0755 %{buildroot}%{_libexecdir}/ovirt-node/hooks/on-boot
 %{__install} -d -m0755 
%{buildroot}%{_libexecdir}/ovirt-node/hooks/on-changed-boot-image
 
-%if %{is_f16}
-# install libvirtd systemd service
-%{__install} -p -m0644 libvirtd.service %{buildroot}%{_unitdir}
-%endif
-%if ! %{is_systemd}
-# install libvirtd upstart job
-%{__install} -d -m0755 %{buildroot}%{_sysconfdir}/init
-%{__install} -p -m0644 libvirtd.upstart 
%{buildroot}%{_sysconfdir}/init/libvirtd.conf
-%endif
-
 # dracut patches for rhel6
 %if ! %{is_systemd}
 %{__install} -p -m0644 dracut/dracut-7ed4ff0636c74a2f819ad6e4f2ab4862.patch 
%{buildroot}%{app_root}
@@ -741,12 +731,6 @@
 %dir %{_sysconfdir}/ovirt-config-boot.d
 %{_sysconfdir}/ovirt-config-boot.d/local_boot_trigger.sh
 
-%if %{is_f16}
-%{_unitdir}/libvirtd.service
-%endif
-%if ! %{is_systemd}
-%{_sysconfdir}/init/libvirtd.conf
-%endif
 %{_sysconfdir}/ovirt-node/logging.conf
 %{_sysconfdir}/ovirt-node/logging.debug.conf
 %{_sysconfdir}/sysconfig/modules/vlan.modules


-- 
To view, visit http://gerrit.ovirt.org/36300
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I09ed730bbf70bcb4d9dcd391fa89c3798fea04aa
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <[email protected]>
_______________________________________________
node-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/node-patches

Reply via email to