On Thursday 08 November 2001 09:31 am, Mike Orr wrote:
> On Thu, Nov 08, 2001 at 03:13:32AM -0800, Chuck Esterbrook wrote:
> > I see the following line in the webkit init script:
> >
> > [ -f $WEBKIT_DIR/AppServer ] || exit 0
> >
> >
> > Does this seem a bit strange to anyone? It exits silently if the app
> > server cannot be located.
> > Seems like it should bitch instead, right?
>
> This is a common practice on Debian Linux at least.  The normal
> procedure for removing software leaves the configuration files behind.
> (If you really want to remove all traces of a program, "dpkg --purge".)
> This avoids losing your customizations if you need them later; e.g., if
> the program was automatically uninstalled to avoid a conflict with
> another program.
>
> The test ensures the startup will fail gracefully if the program has
> been removed.  Normally the test is -x rather than -f: -x verifies the
> file is executable, -f verifies only that it exists.

The unfortunate side effect is that I had the path wrong and instead of getting an 
error message, my app server simply didn't start.

I very much prefer errors over silent but deadly failures.

But you're not the only person who pointed out that this it the standard practice, so 
I'll leave it as it in CVS.

I agree with -x and will change it.

-Chuck

_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to