Skip to main content
ExLibris

Knowledge Assistant

BETA
  • Subscribe by RSS
  • Back
    Rosetta

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Rosetta
    3. Knowledge Articles
    4. How to change the log files location

    How to change the log files location

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Description
    2. Resolution
    • 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
    View article in the Exlibris Knowledge Center
    1. Back to top
      • How to change the directory where Tomcat temporally saves a copy of the file for deposit (relevant for manual deposit only)
      • How to change the PDS that Rosetta uses?
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Content Type
      Knowledge Article
      Language
      English
      Product
      Rosetta
    2. Tags
      1. operational_shared
      2. Rosetta
      3. server.log
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved