Web Server 7.0

Wednesday May 17, 2006

Start on Boot

startonboot
One of the cool features Sun Java System Web Server 7 provides is start on boot. You can opt for this feature during installation itself, once opted, all your web server instances will be started automatically during system startup.


To enable start on boot, you need to log in as root and start the installation. Installer provides a checkbox in the configuration panel which will show up only when you are logged in as root. Select the check box and proceed with the installation. Once your installation is done, the following scripts are created.

For Solaris
      "/etc/init.d/webserver7-*"

For linux
      "/etc/init.d/webserver7-*"


For each installation, a uniqe script is created with a hashcode replacing the " * " in the above script names.
        For example, script name can be /etc/init.d/webserver7-77efea

To disable start on boot after the installation is done, set WS_START_ONBOOT to zero in the scripts mentioned above. Once the variable is set to zero, your web server instances will not be started at boot time when you restart your machine next time.

To re-enable it set WS_START_ONBOOT to 1.

You should be little careful while editing the init scripts mentioned above, especially if you have multiple installations on your box. Make sure, you are editing the right script for your installation by having a look at the variable WS_INSTANCE_ROOT in your script. This variable will show up your installation path.

I hope, one of the cool features is unveiled here, you can expect more. stay tuned.


Comments:

hi

Posted by suresh on October 25, 2009 at 09:20 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

Calendar

Feeds

Search

Links

Navigation

Referrers