Start on Boot on Web Server 7

I installed Web Server 7 Preview 3 using the express installation. The Web server works excellently. However, I cannot find out how to set up the Start on Boot feature. Can you help? I've found documentation on how to turn off the feature (thanks vijay: http://blogs.sun.com/vijay/), but I want to turn it on.

dailysun

[332 byte] By [dailysun] at [2007-11-26 11:00:37]
# 1
unfortunately, there isn't a simple way to turn it on other than installing again and choosing the custom mode of installation and then saying 'y' to automatic start on boot. i wish, we had support for this within our admin.
chilideveloper at 2007-7-7 3:14:17 > top of Java-index,Web & Directory Servers,Web Servers...
# 2

Of course, the script created in /etc/init.d is the same on any installation (with minor path modifications) - so you could do an installation to a test system and copy the file and link it yourself.

One thing to note - the start script uses logic like this:

S1WS_HOME=INSTALLATION DIRECTORY HERE

S1WS_VERSION="6.1"

rc_failed="Failure"

rc_success="Success"

ret=$rc_success

# See how we were called.

case "$1" in

start)

echo "Sun ONE Web Server $S1WS_VERSION starting ($S1WS_HOME)"

for each_server in $S1WS_HOME/https-*

do

if [ -d $each_server ]; then

echo " `basename $each_server`: \c"

$each_server/start || ret=$rc_failed

echo "$ret"

fi

done

If you have a consistant naming convention, you can modify the "for each server" statement so it only starts your servers and not the admin server...

DMcMullin at 2007-7-7 3:14:17 > top of Java-index,Web & Directory Servers,Web Servers...