5 .
/etc
/profile.d
/jdk.sh
6 .
$DERBY_HOME/bin
/derby_common.sh
8 DAEMON_NAME
="derby-network-server"
9 DAEMON_CONF
="/etc/conf.d/$DAEMON_NAME"
10 DAEMON_PID
="/var/run/$DAEMON_NAME.pid"
12 [ -f $DAEMON_CONF ] && .
$DAEMON_CONF
14 DERBY_START_CMD
="$JAVACMD $DERBY_OPTS -classpath \"$LOCALCLASSPATH\" org.apache.derby.drda.NetworkServerControl start"
15 DERBY_STOP_CMD
="$JAVACMD $DERBY_OPTS -classpath \"$LOCALCLASSPATH\" org.apache.derby.drda.NetworkServerControl shutdown"
19 stat_busy
"Starting Derby Network Server"
21 if ck_daemon
$DAEMON_NAME; then
22 $DERBY_START_CMD > /dev
/null
&
24 PID
=`ps ax | grep -v grep | grep derby | grep org.apache.derby.drda.NetworkServerControl | awk '{print $1}'`
26 if [ -z "$PID" ]; then
29 echo $PID > $DAEMON_PID
30 add_daemon
$DAEMON_NAME
39 stat_busy
"Stopping Derby Network Server"
41 if ck_daemon
$DAEMON_NAME; then
44 $DERBY_STOP_CMD > /dev
/null
&
50 rm_daemon
$DAEMON_NAME
61 echo "usage: $0 {start|stop|restart}"