Update rse.env to enable coexistence

As mentioned in the previous step, rse.env of the non-encrypted setup is also used by the encrypted setup through the symbolic link. So we must update the file to dynamically pick up the correct port number and use unique log directories. We must also update it so that all setups are able to find their local and the shared configuration files. All this can be addressed by minor changes to rse.env.

$ oedit /etc/zexpl/rse.env
      -> # make port provided as started task argument known to the rest of this file
      -> _RSE_RSED_PORT=$Start of changeRSEEnd of change_PORT

      -> # create unique log directories for servers sharing this rse.env
      -> _RSE_JAVAOPTS="$_RSE_JAVAOPTS -Ddaemon.log=/var/zexpl/logs/$_RSE_RSED_PORT"
      -> _RSE_JAVAOPTS="$_RSE_JAVAOPTS -Duser.log=/var/zexpl/logs/$_RSE_RSED_PORT"

      -> add at the END:
         # -- NEEDED TO FIND THE REMAINING CONFIGURATION FILES IN CFG_BASE
         CFG_BASE=/etc/zexpl
         CLASSPATH=.:$CFG_BASE:$CLASSPATH

The changes in the preceding example pick up the port number provided as startup-argument and define a new log location (which will be created by RSE daemon if the log location does not exist). The changes also update the CLASSPATH so that the secure RSE processes will first search the current directory (/etc/zexpl/secure) for configuration files and then search the original directory (/etc/zexpl).