[ovs-dev] [PATCH] packaging: Do not automatically restart user-space on upgrade from 1.3
Ansis Atteka
aatteka at nicira.com
Thu Jan 19 01:20:46 UTC 2012
On Wed, Jan 18, 2012 at 3:44 PM, Ben Pfaff <blp at nicira.com> wrote:
> On Wed, Jan 18, 2012 at 03:39:06PM -0800, Ansis Atteka wrote:
> > But can I assume that it is safe to hardcode in postinst the
> > /etc/init.d/openvswitch-switch path? I guess that the debhelper
> > gets it from ./configure, right? Will look into this...
>
> The #DEBHELPER# block currently expands to:
>
> # Automatically added by dh_installinit
> if [ -x "/etc/init.d/openvswitch-switch" ]; then
>
Yes, I was being cautious whether this path above could
expand to something else if debhelper would not be generating
this section anymore (e.g. if paths were overriden with ./configure).
Also If I would use --no-start then I guess I would need to add some
more additional code in prerm.
update-rc.d openvswitch-switch defaults >/dev/null
> if [ -n "$2" ]; then
> _dh_action=restart
> else
> _dh_action=start
> fi
> if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
> invoke-rc.d openvswitch-switch $_dh_action ||
> init_script_error
> else
> /etc/init.d/openvswitch-switch $_dh_action ||
> init_script_error
> fi
> fi
> # End automatically added section
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20120118/24c89eca/attachment-0003.html>
More information about the dev
mailing list