[ovs-dev] [PATCH] packaging: Do not automatically restart user-space on upgrade from 1.3
Ben Pfaff
blp at nicira.com
Wed Jan 18 23:44:33 UTC 2012
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
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
More information about the dev
mailing list