[ovs-dev] [suse 2/7] xenserver: Be compatible with non-XenServer func libraries in init script.
Justin Pettit
jpettit at nicira.com
Tue Dec 28 19:01:40 UTC 2010
On Dec 15, 2010, at 11:18 AM, Ben Pfaff wrote:
> +# source function library
> +if [ -f /etc/init.d/functions ]; then
> + . /etc/init.d/functions
> +elif [ -f /etc/rc.d/init.d/functions ]; then
> + . /etc/rc.d/init.d/functions
> +elif [ -f /lib/lsb/init-functions ]; then
> + . /lib/lsb/init-functions
> +else
> + exit 0
> +fi
I would have expected this to exit with something other than 0 and possibly print a warning.
Otherwise, looks good.
--Justin
More information about the dev
mailing list