]>
Commit | Line | Data |
---|---|---|
603e1740 | 1 | Index: devel/debian/openvswitch-switch.openvswitch-nonetwork.service |
86a54bd0 DM |
2 | =================================================================== |
3 | --- /dev/null | |
603e1740 | 4 | +++ devel/debian/openvswitch-switch.openvswitch-nonetwork.service |
84378800 | 5 | @@ -0,0 +1,12 @@ |
86a54bd0 DM |
6 | +[Unit] |
7 | +Description=Open vSwitch Internal Unit | |
86a54bd0 | 8 | + |
84378800 | 9 | +DefaultDependencies=no |
f7b98d4f | 10 | +After=local-fs.target systemd-tmpfiles-setup.service pvenetcommit.service |
84378800 | 11 | + |
86a54bd0 DM |
12 | +[Service] |
13 | +Type=oneshot | |
14 | +RemainAfterExit=yes | |
15 | +EnvironmentFile=-/etc/sysconfig/openvswitch | |
84378800 | 16 | +ExecStart=/usr/share/openvswitch/scripts/ovs-ctl start --system-id=random $OPTIONS |
86a54bd0 | 17 | +ExecStop=/usr/share/openvswitch/scripts/ovs-ctl stop |
603e1740 | 18 | Index: devel/debian/openvswitch-switch.openvswitch.service |
86a54bd0 DM |
19 | =================================================================== |
20 | --- /dev/null | |
603e1740 | 21 | +++ devel/debian/openvswitch-switch.openvswitch.service |
86a54bd0 DM |
22 | @@ -0,0 +1,13 @@ |
23 | +[Unit] | |
24 | +Description=Open vSwitch | |
25 | +After=syslog.target network.target openvswitch-nonetwork.service | |
26 | +Requires=openvswitch-nonetwork.service | |
27 | + | |
28 | +[Service] | |
29 | +Type=oneshot | |
30 | +ExecStart=/bin/true | |
31 | +ExecStop=/bin/true | |
32 | +RemainAfterExit=yes | |
33 | + | |
34 | +[Install] | |
35 | +WantedBy=multi-user.target | |
603e1740 | 36 | Index: devel/debian/rules |
86a54bd0 | 37 | =================================================================== |
603e1740 WL |
38 | --- devel.orig/debian/rules |
39 | +++ devel/debian/rules | |
cd97cb74 FG |
40 | @@ -53,7 +53,10 @@ override_dh_install: |
41 | cp debian/openvswitch-switch.template debian/openvswitch-switch/usr/share/openvswitch/switch/default.template | |
f7b98d4f AD |
42 | |
43 | override_dh_installinit: | |
cd97cb74 | 44 | - dh_installinit -R |
86a54bd0 DM |
45 | + dh_systemd_enable -p "openvswitch-switch" --name openvswitch |
46 | + dh_systemd_enable -p "openvswitch-switch" --name openvswitch-nonetwork | |
47 | + dh_installinit | |
48 | + dh_systemd_start -p "openvswitch-switch" --name openvswitch-nonetwork --restart-after-upgrade | |
f7b98d4f AD |
49 | |
50 | override_dh_strip: | |
603e1740 WL |
51 | dh_strip --dbg-package=openvswitch-dbg |
52 | Index: devel/debian/control | |
86a54bd0 | 53 | =================================================================== |
603e1740 WL |
54 | --- devel.orig/debian/control |
55 | +++ devel/debian/control | |
f7b98d4f AD |
56 | @@ -14,6 +14,7 @@ Build-Depends: graphviz, |
57 | openssl, | |
58 | procps, | |
59 | python-all (>= 2.7), | |
cd97cb74 | 60 | + dh-systemd (>= 1.4), |
603e1740 | 61 | python-six |
86a54bd0 DM |
62 | Standards-Version: 3.9.3 |
63 | Homepage: http://openvswitch.org/ | |
cd97cb74 | 64 | @@ -51,7 +52,8 @@ Depends: kmod | module-init-tools, |
f7b98d4f AD |
65 | uuid-runtime, |
66 | ${misc:Depends}, | |
67 | ${python:Depends}, | |
68 | - ${shlibs:Depends} | |
69 | + ${shlibs:Depends}, | |
70 | + systemd | |
86a54bd0 DM |
71 | Description: Open vSwitch switch implementations |
72 | Open vSwitch is a production quality, multilayer, software-based, | |
73 | Ethernet virtual switch. It is designed to enable massive network | |
603e1740 | 74 | Index: devel/debian/automake.mk |
86a54bd0 | 75 | =================================================================== |
603e1740 WL |
76 | --- devel.orig/debian/automake.mk |
77 | +++ devel/debian/automake.mk | |
78 | @@ -27,7 +27,6 @@ EXTRA_DIST += \ | |
86a54bd0 DM |
79 | debian/openvswitch-pki.postrm \ |
80 | debian/openvswitch-switch.README.Debian \ | |
81 | debian/openvswitch-switch.dirs \ | |
82 | - debian/openvswitch-switch.init \ | |
83 | debian/openvswitch-switch.install \ | |
84 | debian/openvswitch-switch.logrotate \ | |
85 | debian/openvswitch-switch.manpages \ |