Sun Java System Calendar Server 6 2005Q4 Administration Guide

Relocate the Calendar Server config Directory

The Calendar Server stores configuration files in the config directory. In an earlier release, the config directory was relocated. Its location is:

/etc/opt/SUNWics5/config/

Symbolic links to the old config directory are kept in the following directories:

After running the Calendar Server configuration program, csconfigurator.sh, remove the symbolic link in each of the old directories and replace it with a link to the new directory as described in the procedures that follows. Note that these procedures preserve the settings from the original configuration files found in /etc/opt/SUNWics5/config.

Before you start, make sure the contents of the config directory are owned by icsuser and icsgroup (or your choices you specified for the runtime User ID and Group ID):

# ls -ld config
 ... icsuser icsgroup ... config/

To Change the Symbolic Link Found in /opt/SUNWics5/cal:

  1. Change to the /global/cal/opt/SUNWics5/cal directory, For example:


    # cd /global/cal/opt/SUNWics5/cal/

    where /global/cal/ is the file system mount point.

  2. Check that config is a symbolic link to the new config directory. For example:


    # ls -l config
     ... config -\> /etc/opt/SUNWics5/config/
  3. In the /opt/SUNWics5/cal/ directory, remove the config symbolic link:


    # cd /opt/SUNWics5/cal
    # rm config
  4. Copy the contents of the /etc/opt/SUNWics5/config directory into the new HA directory, preserving the ownership and permissions:


    # cd /global/cal/opt/SUNWics5/cal
    # cp -pr /etc/opt/SUNWics5/config .

To Change the Symbolic Link Found in /opt/SUNWics5/lib:

  1. In the /global/cal/opt/SUNWics5/cal/lib directory, check that config is a symbolic link to /etc/opt/SUNWics5/config.


    # cd /global/cal/opt/SUNWics5/cal/lib
     # ls -l config
     ... config -\> /etc/opt/SUNWics5/config/
  2. Remove the config symbolic link:


    # rm config
  3. Create a new symbolic link to the new config location:


    # ln -s ../config config
  4. Verify the new link:


    # ls -l config
     ... config -\> ../config/

To Change the Symbolic Link Found in /opt/SUNWics5/sbin:

  1. In the /global/cal/opt/SUNWics5/cal/sbin directory, check that config is a symbolic link to /etc/opt/SUNWics5/config.


    # cd /global/cal/opt/SUNWics5/cal/sbin
     # ls -l config
     ... config -\> /etc/opt/SUNWics5/config/
  2. Remove the config symbolic link:


    # rm config
  3. Create a new symbolic link to the new config location:


    # ln -s ../config config
  4. Verify the new link:


    # ls -l config
     ... config -\> ../config/

    Note –

    If you need to uninstall Calendar Server, use the Java Enterprise System uninstaller, which removes the SUNWics5 and SUNWica5 packages.

    For a Calendar Server HA configuration, however, you must first remove the relocated config directory and all of its contents before you run the uninstaller. For example:


    # cd /global/cal/opt/SUNWics5/cal/
     # rm -rf config

    If you do not remove the config directory, the uninstall operation fails for the SUNWics5 package.