]> git.proxmox.com Git - openvswitch.git/blame - pvepatches/fix-init-depends.patch
update to 2.3.0
[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
08c8591a 13+# Required-Start: pvenetcommit $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===================================================================
2e9807b7
DM
48--- new.orig/debian/rules 2014-08-14 22:33:18.000000000 +0200
49+++ new/debian/rules 2014-09-18 08:09:23.000000000 +0200
50@@ -130,7 +130,8 @@
f21758c9
DM
51 dh_installexamples
52 dh_installdebconf
53 dh_installlogrotate
54- dh_installinit -R
55+ dh_installinit -p "openvswitch-switch" -R -- start 20 S . stop 80 0 6 .
56+ dh_installinit --remaining-packages -R
57 dh_installcron
58 dh_installman --language=C
59 dh_link