]> git.proxmox.com Git - mirror_ovs.git/commit
openvswitch-switch.postinst: Remove upstart files.
authorGurucharan Shetty <guru@ovn.org>
Mon, 26 Jun 2017 10:34:58 +0000 (03:34 -0700)
committerGurucharan Shetty <guru@ovn.org>
Wed, 12 Jul 2017 17:03:03 +0000 (10:03 -0700)
commitef241d1e8675660b698839e624695da4ccf25e1b
tree359d8e74f95b8e82ad234b8e5a203fe8748a2465
parentff6169cf00f6f711cf4ac4e3df2600c4dfd68ee9
openvswitch-switch.postinst: Remove upstart files.

For a while, ubuntu used upstart scripts as an alternative
for sysv scripts. For e.g popular releases like ubuntu12.04
and ubuntu14.04 have upstart infrastructure. From Ubuntu16.04,
they have moved to systemd.

Ubuntu maintainers have a fork of openvswitch packages with
upstart scripts. When a user installs openvswitch-switch
package on a ubuntu 14.04 with 'apt-get install openvswitch-switch',
two upstart files are added to /etc/init directory.

Now, when the same user builds debian packages from this repo
and then installs them, the older upstart files don't get
deleted. What this means is that a command like
'invoke-rc.d openvswitch-switch restart' calls initctl scripts
instead of sysv script that this repo provides. In our sysv
scripts we have logic to carefully upgrade kernel module and
save openflow flows. This breaks the intent of the package from
this repo.

This commit deletes any stale upstart files that have remained
in the system.

Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
debian/openvswitch-switch.postinst