]> git.proxmox.com Git - openvswitch.git/blame - pvepatches/fix-init-depends.patch
openvswitch : bump to 2.5 v2
[openvswitch.git] / pvepatches / fix-init-depends.patch
CommitLineData
f21758c9
DM
1Index: new/debian/openvswitch-switch.init
2===================================================================
2e9807b7
DM
3--- new.orig/debian/openvswitch-switch.init 2014-09-18 08:09:17.000000000 +0200
4+++ new/debian/openvswitch-switch.init 2014-09-18 08:09:23.000000000 +0200
f21758c9
DM
5@@ -16,10 +16,12 @@
6 #
7 ### BEGIN INIT INFO
8 # Provides: openvswitch-switch
9-# Required-Start: $network $named $remote_fs $syslog
10-# Required-Stop: $remote_fs
11-# Default-Start: 2 3 4 5
12-# Default-Stop: 0 1 6
f7b98d4f 13+# Required-Start: $local_fs
f21758c9
DM
14+# Required-Stop: $local_fs
15+# X-Start-Before: networking
16+# X-Stop-After: networking
17+# Default-Start: S
18+# Default-Stop: 0 6
19 # Short-Description: Open vSwitch switch
20 # Description: openvswitch-switch provides the userspace components and utilities for
21 # the Open vSwitch kernel-based switch.
63553634
DM
22@@ -38,6 +40,13 @@
23 [ -n "${bridges}" ] && $1 --allow=ovs ${bridges}
24 }
25
26+sendsigs_omit() {
27+ OMITDIR=/run/sendsigs.omit.d
28+ mkdir -p $OMITDIR
29+ ln -sf /var/run/openvswitch/ovs-vswitchd.pid $OMITDIR/ovs-vswitchd.pid
30+ ln -sf /var/run/openvswitch/ovsdb-server.pid $OMITDIR/ovsdb-server.pid
31+}
32+
33 load_kmod () {
34 ovs_ctl load-kmod || exit $?
35 }
36@@ -61,6 +70,9 @@
37 exit 0
38 fi
39 fi
40+
41+ sendsigs_omit
42+
43 set ovs_ctl ${1-start} --system-id=random
44 if test X"$FORCE_COREFILES" != X; then
45 set "$@" --force-corefiles="$FORCE_COREFILES"
f21758c9
DM
46Index: new/debian/rules
47===================================================================
f7b98d4f
AD
48--- a/debian/rules
49+++ b/debian/rules
50@@ -82,7 +82,8 @@ override_dh_install:
51 debian/$(PACKAGE_DKMS)/usr/src/$(PACKAGE)-$(DEB_UPSTREAM_VERSION)/xenserver/LICENSE
52
53 override_dh_installinit:
f21758c9 54- dh_installinit -R
f7b98d4f
AD
55+ dh_installinit -p "openvswitch-switch" -R -- start 20 S . stop 80 0 6 .
56+ dh_installinit --remaining-packages -R
57
58 override_dh_strip:
59 dh_strip --dbg-package=openvswitch-dbg