u/fjammes/dm-1338

Reviewing DM-1338
Hi Andy,

Ok, so I try to perform simple check.

Cheers,

Fabrice

On 10/30/2014 10:33 PM, Andy wrote:
>
> In admin/templates/configuration/etc/sysconfig/path.cfg.sh:
>
> > +# Handling paths, using eups or meta-config file
> > +# Author: Fabrice Jammes <fabrice.jammes@in2p3.fr> (09.17.2013)
> > +#-------------------------------------------------------------------------------
> > +
> > +# Set up a default search path.
> > +# Using value from QSERV_RUN_DIR/qserv-meta.conf
> > +
> > +check_dir_availability() {
> > +    # Test syntax.
> > +    if [ "$#" = 0 ] ; then
> > +	    echo $"Usage: check_dir_availability {varname1} ... {varnameN}"
> > +	    return 1
> > +    fi
> > +    for varname in "$@"
> > +    do
> > +        var=${!varname}
>
> I'm not sure I can answer this. Reasonable checks should be done of 
> course, but it also has to be done without complicating those script 
> too much (and keeping them portable). I think now we do not really 
> know which startup system we are going to end up in few years from now 
> (or maybe we'll need to support few of them), so there is a reason to 
> keep it as simple as possible.
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/LSST/qserv/pull/7/files#r19652701>.
>