Solaris Startup script

Is there any soul that did a startup script for Solaris for App Server 8.x EE?Many thanks.
[104 byte] By [flistello] at [2007-11-26 10:26:49]
# 1

Hei!

I modified the original startup script and now it is this:

-

#!/usr/bin/ksh

# -

# Auxiliar variables definition

# -

AS_SERVER_ROOT=/opt/SUNWappserver

AS_SERVER_BIN=$AS_SERVER_ROOT/appserver/bin

AS_DATA_DIR=/var/opt/SUNWappserver

DAS_ENABLED=<YES | NO>

AS_DOMAIN=<DOMAIN_NAME>

AS_NODE_AGENT=<NODE_AGENT_NAME>

AS_ADMIN_USER=<ADMIN_USER_NAME>

AS_ADMIN_PASSWD_FILE=$AS_DATA_DIR/root.admin.pass

case "$1" in

'start')

echo "\n==========================================================================="

echo " Starting Sun ONE Application Server 8.1"

echo "===========================================================================\n"

# Start DAS if it is enabled

if [ "$DAS_ENABLED" = "YES" ]; then

$AS_SERVER_BIN/asadmin start-domain --user $AS_ADMIN_USER --passwordfile $AS_ADMIN_PASSWD_FILE $AS_DOMAIN

fi

# Start Node Agent (and instances)

$AS_SERVER_BIN/asadmin start-node-agent -user $AS_ADMIN_USER --passwordfile $AS_ADMIN_PASSWD_FILE --startinstances=true $AS_NODE_AGENT

;;

'stop')

echo "\n==========================================================================="

echo " Stopping Sun ONE Application Server 8.1"

echo "===========================================================================\n"

# Stop Node Agent (and instances)

$AS_SERVER_BIN/asadmin stop-node-agent $AS_NODE_AGENT

# Stop DAS if it is enabled

if [ "$DAS_ENABLED" = "YES" ]; then

$AS_SERVER_BIN/asadmin stop-domain $AS_DOMAIN

fi

;;

*)

echo "Usage: $0 { start | stop }"

exit 1

;;

esac

exit 0

-

Bye!

IDROJ at 2007-7-7 2:30:45 > top of Java-index,Application & Integration Servers,Application Servers...