View | Details | Raw Unified | Return to bug 31132
Collapse All | Expand All

(-)/space/opensource/jakarta/bin/startup.sh (-19 / +4 lines)
Lines 5-17 Link Here
5
# $Id: startup.sh,v 1.3 2002/08/04 18:19:43 patrickl Exp $
5
# $Id: startup.sh,v 1.3 2002/08/04 18:19:43 patrickl Exp $
6
# -----------------------------------------------------------------------------
6
# -----------------------------------------------------------------------------
7
7
8
os400=false
9
case "`uname`" in
10
CYGWIN*) cygwin=true;;
11
OS400*) os400=true;;
12
esac
13
14
15
# resolve links - $0 may be a softlink
8
# resolve links - $0 may be a softlink
16
PRG="$0"
9
PRG="$0"
17
10
Lines 29-46 Link Here
29
EXECUTABLE=catalina.sh
22
EXECUTABLE=catalina.sh
30
23
31
# Check that target executable exists
24
# Check that target executable exists
32
if $os400; then
25
if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
33
  # -x will Only work on the os400 if the files are: 
26
  echo "Cannot find $PRGDIR/$EXECUTABLE"
34
  # 1. owned by the user
27
  echo "This file is needed to run this program"
35
  # 2. owned by the PRIMARY group of the user
28
  exit 1
36
  # this will not work if the user belongs in secondary groups
37
  eval
38
else
39
  if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
40
    echo "Cannot find $PRGDIR/$EXECUTABLE"
41
    echo "This file is needed to run this program"
42
    exit 1
43
  fi
44
fi
29
fi
45
30
46
exec "$PRGDIR"/"$EXECUTABLE" start "$@"
31
exec "$PRGDIR"/"$EXECUTABLE" start "$@"

Return to bug 31132