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

    Is there a way to make the pc and web servers restart routinely/automatically?

    • Article Type: General
    • Product: DigiTool
    • Product Version: 3

    Description:
    Is there a way to configure the system so that the pc and web servers restart routinely?

    Resolution:
    Yes - please see the example crontab entry below:

    #Re-start pc_server every morning at 3:30am Central
    30 3 * * 1-5 /exlibris/dtl/d3_1/dtl/proc/pc_server 6881 &

    #Re-start web_server every morning at 3:31am Central
    31 3 * * 1-5 /exlibris/dtl/d3_1/dtl/proc/www_server 4881 8881 2 &

    You may have to test first whether the cron dtl user will be able to interpret the relevant environment variables ($WWW_HOST, $PC_SERVER_PORT, $HTTPD_PORT).

    If it doesn't work, try using the actual $WWW_HOST value (you can type echo $WWW_HOST to get that value) same goes for the other env variables (e.g.):

    us-digitool-dev.exlibris-usa.com-d3(1) >>echo $WWW_HOST
    us-digitool-dev.exlibris-usa.com

    us-digitool-dev.exlibris-usa.com-d3(1) >>echo $PC_SERVER_PORT
    6881

    us-digitool-dev.exlibris-usa.com-d3(1) >>echo $HTTPD_PORT
    8881

    Additional Information

    pc_server, web_server, restart, routinely, automatically, cron, crontab


    • Article last edited: 10/8/2013
    //Feedback