Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    How to change the log files location

    • Product: Rosetta
    • Product Version: 5.0.1+

    Description

    How to change the location of the log files on all servers from "/operational_shared/logs" to "/exlibris/dps/d4_1/log". 

     

    We want to change the location of the following log files:

    • server.log 
    • gc.log 
    • pds_server.log 
    • wrapper.log 
    • /access_log 
    • localhost_access_log.YYYY-MM-DD 

    Resolution

    Note:

    • $op_dir is a shortcut for the directory operational_shared.
    • $dps_dev is a shortcut for the directory exlibris/dps/d4_1.
    • On some of the scripts the directories appears in their shortcut and in some they appear in their full path.

     

    On each server, run the followings:

    1. Stop Rosetta: 

    • dps_stop

    2. Edit the dps_start script: 

    • dps_profile; vi  dps_start
    • Replace "$op_dir/logs/${WWW_HOST}" with "$dps_dev/log/${WWW_HOST}"

    3. Edit the script jboss_startup.sh: 

    • vi $dps_dev/system.dir/bin/jboss_startup.sh
    • Replace each "/operational_shared/logs" to "/exlibris/dps/d4_1/log". 

    4. Edit the prof_master​ file:

    • vi $dps_dev/profile/prof_master
    • Replace "alias dps_log    'cd $op_dir/logs/${WWW_HOST}'" to "alias dps_log     'cd $dps_dev/log/${WWW_HOST}'"
    • Replace "alias dps_tail    'cd $op_dir/logs/${WWW_HOST}; tail -f server.log'" to "alias dps_tail     'cd $dps_dev/log/${WWW_HOST}; tail -f server.log'"
    • Replace "alias dlog        'tail -f $op_dir/logs/${WWW_HOST}/server.log'" to "alias dlog        'tail -f $dps_dev/log/${WWW_HOST}/server.log'"

    5. Edit the wrapper.conf:

    • vi $dps_dev/system.dir/thirdparty/wrapper/conf/wrapper.conf
    • Replace each "/operational_shared/logs" to "/exlibris/dps/d4_1/log".  

    6. Edit jboss_startup_dbg.sh:

    • vi $dps_dev/system.dir/bin/jboss_startup_dbg.sh
    • Replace each "/operational_shared/logs" to "/exlibris/dps/d4_1/log".  

    7. Edit: jboss_rename_log.sh

    • vi $dps_dev/system.dir/bin/jboss_rename_log.sh
    • Replace each "/operational_shared/logs" to "/exlibris/dps/d4_1/log".

    8. On the PDS Server - Edit PDSDefinitions:

    • vi  $dps_dev/pds/program/PDSDefinitions
    • Replace each "/operational_shared/logs" to "/exlibris/dps/d4_1/log".

    9. run  .cshrc:

    • source /exlibris/dps/.cshrc

    10. Restart Rosetta:

    • dps_start

     

    The changes will be overwritten once you install Rosetta SP, Rosetta HF or if you run dps_bin;./set_global.sh script.


    • Article last edited: 24-Jan-2018