SVN: rc-scripts/branches/upstart_native/rc.d/init.d/functions
Elan Ruusamäe
glen at delfi.ee
Mon May 10 17:41:47 CEST 2010
On Monday 10 May 2010 09:40:34 jajcus wrote:
> Author: jajcus
> Date: Mon May 10 08:40:34 2010
> New Revision: 11411
>
> Modified:
> rc-scripts/branches/upstart_native/rc.d/init.d/functions
> Log:
> - use 'configtest' before restart/reload if available
[..]
> reload)
> + if is_yes $has_configtest ; then
> + "$script" configtest || exit 1
> + fi
perhaps we standardize this, i.e if "configtest" shell function is available,
then use that shell function instead of invoking script again.
as invoking itself again, is slow, /bin/sh and huge init.d/functions slow
things down.
--
glen
More information about the pld-devel-en
mailing list