2015-12-18 22:01:20 +01:00
|
|
|
Adjust virtlogd init files to conform to SUSE standards
|
|
|
|
|
Accepting request 500763 from home:jfehlig:branches:Virtualization
- Update to libvirt 3.4.0
- Many incremental improvements and bug fixes, see
http://libvirt.org/news.html
- Dropped patches:
aeda1b8c-qemu-no-error-shutdown.patch,
8023b21a-conf-ioapic.patch, 6b5c6314-qemu-irqchip.patch,
2020e2c6-conf-intremap.patch, 04028a9d-qemu-intremap.patch,
d12781b4-conf-iommu-cache-mode-attr.patch,
a5691448-qemu-iommu-cache-mode.patch,
3a276c65-conf-iommu-def-stability-check.patch,
935d927a-conf-iommu-ABI-stability-check.patch,
4cd3f241-fix-NULL-disk-source.patch,
975ea20f-loopback-macro.patch,
dbb85e0c-libxl-graphics-listen-addr.patch,
libxl-def-usbctrl.patch, revert-2841e675-mtu.patch
- FATE#321335, bsc#1031056, bsc#1037774, bsc#1040207, bsc#1040213
OBS-URL: https://build.opensuse.org/request/show/500763
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=606
2017-06-02 20:08:28 +02:00
|
|
|
Index: libvirt-3.4.0/src/logging/virtlogd.init.in
|
2015-12-18 22:01:20 +01:00
|
|
|
===================================================================
|
Accepting request 500763 from home:jfehlig:branches:Virtualization
- Update to libvirt 3.4.0
- Many incremental improvements and bug fixes, see
http://libvirt.org/news.html
- Dropped patches:
aeda1b8c-qemu-no-error-shutdown.patch,
8023b21a-conf-ioapic.patch, 6b5c6314-qemu-irqchip.patch,
2020e2c6-conf-intremap.patch, 04028a9d-qemu-intremap.patch,
d12781b4-conf-iommu-cache-mode-attr.patch,
a5691448-qemu-iommu-cache-mode.patch,
3a276c65-conf-iommu-def-stability-check.patch,
935d927a-conf-iommu-ABI-stability-check.patch,
4cd3f241-fix-NULL-disk-source.patch,
975ea20f-loopback-macro.patch,
dbb85e0c-libxl-graphics-listen-addr.patch,
libxl-def-usbctrl.patch, revert-2841e675-mtu.patch
- FATE#321335, bsc#1031056, bsc#1037774, bsc#1040207, bsc#1040213
OBS-URL: https://build.opensuse.org/request/show/500763
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=606
2017-06-02 20:08:28 +02:00
|
|
|
--- libvirt-3.4.0.orig/src/logging/virtlogd.init.in
|
|
|
|
+++ libvirt-3.4.0/src/logging/virtlogd.init.in
|
2016-01-18 20:32:30 +01:00
|
|
|
@@ -4,59 +4,56 @@
|
|
|
|
# http://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/initscrcomconv.html
|
2015-12-18 22:01:20 +01:00
|
|
|
#
|
|
|
|
### BEGIN INIT INFO
|
|
|
|
-# Provides: virtlogd
|
2016-01-18 20:32:30 +01:00
|
|
|
-# Default-Start: 3 4 5
|
|
|
|
-# Default-Stop: 0 1 2 6
|
|
|
|
-# Required-Start:
|
|
|
|
-# Required-Stop:
|
|
|
|
-# Should-Start: $network $remote_fs
|
|
|
|
-# Should-Stop: $network $remote_fs
|
2015-12-18 22:01:20 +01:00
|
|
|
+# Provides: virtlogd
|
|
|
|
+# Required-Start: $network $remote_fs
|
|
|
|
+# Required-Stop: $network $remote_fs
|
2016-01-18 20:32:30 +01:00
|
|
|
+# Default-Start: 3 5
|
2015-12-18 22:01:20 +01:00
|
|
|
+# Default-Stop: 0 1 2 4 6
|
2016-01-18 20:32:30 +01:00
|
|
|
+# Should-Start
|
|
|
|
+# Should-Stop:
|
2015-12-18 22:01:20 +01:00
|
|
|
# Short-Description: virtual machine log manager
|
|
|
|
-# Description: This is a daemon for managing logs
|
|
|
|
-# of virtual machine consoles
|
|
|
|
+# Description: This is a daemon for managing logs
|
|
|
|
+# of virtual machine consoles
|
|
|
|
### END INIT INFO
|
|
|
|
|
|
|
|
# the following is chkconfig init header
|
2016-01-18 20:32:30 +01:00
|
|
|
#
|
|
|
|
-# virtlogd: virtual machine log manager
|
|
|
|
+# virtlogd: virtual machine log manager
|
|
|
|
#
|
|
|
|
-# chkconfig: 345 96 04
|
|
|
|
-# description: This is a daemon for managing logs \
|
|
|
|
-# of virtual machine consoles
|
|
|
|
+# chkconfig: 345 96 04
|
|
|
|
+# description: This is a daemon for managing logs \
|
|
|
|
+# of virtual machine consoles
|
|
|
|
#
|
|
|
|
-# processname: virtlogd
|
|
|
|
-# pidfile: @localstatedir@/run/virtlogd.pid
|
|
|
|
+# processname: virtlogd
|
|
|
|
+# pidfile: @localstatedir@/run/virtlogd.pid
|
2015-12-18 22:01:20 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
-# Source function library.
|
|
|
|
-. @sysconfdir@/rc.d/init.d/functions
|
|
|
|
+. @sysconfdir@/rc.status
|
|
|
|
+rc_reset
|
|
|
|
|
|
|
|
SERVICE=virtlogd
|
|
|
|
-PROCESS=virtlogd
|
|
|
|
+PROCESS=@sbindir@/virtlogd
|
|
|
|
PIDFILE=@localstatedir@/run/$SERVICE.pid
|
|
|
|
|
|
|
|
VIRTLOGD_ARGS=
|
|
|
|
|
|
|
|
test -f @sysconfdir@/sysconfig/virtlogd && . @sysconfdir@/sysconfig/virtlogd
|
|
|
|
|
|
|
|
-RETVAL=0
|
|
|
|
|
|
|
|
start() {
|
|
|
|
- echo -n $"Starting $SERVICE daemon: "
|
|
|
|
- daemon --pidfile $PIDFILE --check $SERVICE $PROCESS --daemon $VIRTLOGD_ARGS
|
|
|
|
- RETVAL=$?
|
|
|
|
- echo
|
2016-01-18 20:32:30 +01:00
|
|
|
- [ $RETVAL -eq 0 ] && touch @localstatedir@/lock/subsys/$SERVICE
|
2015-12-18 22:01:20 +01:00
|
|
|
+ echo -n $"Starting $SERVICE "
|
|
|
|
+ test -d $PIDDIR || mkdir -p $PIDDIR
|
|
|
|
+ startproc -p $PIDFILE $PROCESS --pid-file $PIDFILE --daemon $VIRTLOGD_ARGS
|
|
|
|
+ rc_status -v
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
- echo -n $"Stopping $SERVICE daemon: "
|
|
|
|
+ echo -n $"Stopping $SERVICE "
|
|
|
|
|
|
|
|
- killproc -p $PIDFILE $PROCESS
|
|
|
|
+ killproc -p $PIDFILE $PROCESS > /dev/null 2>&1
|
|
|
|
RETVAL=$?
|
|
|
|
- echo
|
|
|
|
+ rc_status -v
|
|
|
|
if [ $RETVAL -eq 0 ]; then
|
2016-01-18 20:32:30 +01:00
|
|
|
- rm -f @localstatedir@/lock/subsys/$SERVICE
|
2015-12-18 22:01:20 +01:00
|
|
|
rm -f $PIDFILE
|
|
|
|
fi
|
|
|
|
}
|
2016-01-18 20:32:30 +01:00
|
|
|
@@ -70,9 +67,7 @@ reload() {
|
2015-12-18 22:01:20 +01:00
|
|
|
echo -n $"Reloading $SERVICE configuration: "
|
|
|
|
|
|
|
|
killproc -p $PIDFILE $PROCESS -USR1
|
|
|
|
- RETVAL=$?
|
|
|
|
- echo
|
|
|
|
- return $RETVAL
|
|
|
|
+ rc_status
|
|
|
|
}
|
|
|
|
|
|
|
|
# See how we were called.
|
2016-01-18 20:32:30 +01:00
|
|
|
@@ -81,18 +76,20 @@ case "$1" in
|
2015-12-18 22:01:20 +01:00
|
|
|
$1
|
|
|
|
;;
|
|
|
|
status)
|
|
|
|
- status -p $PIDFILE $PROCESS
|
|
|
|
- RETVAL=$?
|
|
|
|
+ echo -n "Checking status of $SERVICE "
|
|
|
|
+ checkproc $PROCESS
|
|
|
|
+ rc_status -v
|
|
|
|
;;
|
|
|
|
force-reload)
|
|
|
|
reload
|
|
|
|
;;
|
|
|
|
condrestart|try-restart)
|
2016-01-18 20:32:30 +01:00
|
|
|
- [ -f @localstatedir@/lock/subsys/$SERVICE ] && restart || :
|
2015-12-18 22:01:20 +01:00
|
|
|
+ $0 status >/dev/null && restart || :
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload|try-restart}"
|
|
|
|
- exit 2
|
|
|
|
+ rc_failed 2
|
|
|
|
+ rc_exit
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
-exit $RETVAL
|
|
|
|
+rc_exit
|
Accepting request 500763 from home:jfehlig:branches:Virtualization
- Update to libvirt 3.4.0
- Many incremental improvements and bug fixes, see
http://libvirt.org/news.html
- Dropped patches:
aeda1b8c-qemu-no-error-shutdown.patch,
8023b21a-conf-ioapic.patch, 6b5c6314-qemu-irqchip.patch,
2020e2c6-conf-intremap.patch, 04028a9d-qemu-intremap.patch,
d12781b4-conf-iommu-cache-mode-attr.patch,
a5691448-qemu-iommu-cache-mode.patch,
3a276c65-conf-iommu-def-stability-check.patch,
935d927a-conf-iommu-ABI-stability-check.patch,
4cd3f241-fix-NULL-disk-source.patch,
975ea20f-loopback-macro.patch,
dbb85e0c-libxl-graphics-listen-addr.patch,
libxl-def-usbctrl.patch, revert-2841e675-mtu.patch
- FATE#321335, bsc#1031056, bsc#1037774, bsc#1040207, bsc#1040213
OBS-URL: https://build.opensuse.org/request/show/500763
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=606
2017-06-02 20:08:28 +02:00
|
|
|
Index: libvirt-3.4.0/src/logging/virtlogd.sysconf
|
2015-12-18 22:01:20 +01:00
|
|
|
===================================================================
|
Accepting request 500763 from home:jfehlig:branches:Virtualization
- Update to libvirt 3.4.0
- Many incremental improvements and bug fixes, see
http://libvirt.org/news.html
- Dropped patches:
aeda1b8c-qemu-no-error-shutdown.patch,
8023b21a-conf-ioapic.patch, 6b5c6314-qemu-irqchip.patch,
2020e2c6-conf-intremap.patch, 04028a9d-qemu-intremap.patch,
d12781b4-conf-iommu-cache-mode-attr.patch,
a5691448-qemu-iommu-cache-mode.patch,
3a276c65-conf-iommu-def-stability-check.patch,
935d927a-conf-iommu-ABI-stability-check.patch,
4cd3f241-fix-NULL-disk-source.patch,
975ea20f-loopback-macro.patch,
dbb85e0c-libxl-graphics-listen-addr.patch,
libxl-def-usbctrl.patch, revert-2841e675-mtu.patch
- FATE#321335, bsc#1031056, bsc#1037774, bsc#1040207, bsc#1040213
OBS-URL: https://build.opensuse.org/request/show/500763
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=606
2017-06-02 20:08:28 +02:00
|
|
|
--- libvirt-3.4.0.orig/src/logging/virtlogd.sysconf
|
|
|
|
+++ libvirt-3.4.0/src/logging/virtlogd.sysconf
|
2015-12-18 22:01:20 +01:00
|
|
|
@@ -1,3 +1,7 @@
|
|
|
|
+## Path: System/Virtualization/virtlogd
|
|
|
|
+
|
|
|
|
+## Type: string
|
|
|
|
+## Default: ""
|
|
|
|
#
|
|
|
|
# Pass extra arguments to virtlogd
|
|
|
|
#VIRTLOGD_ARGS=
|