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

    Restart Servers from job_list

    • Article Type: General
    • Product: Aleph
    • Product Version: 21, 22, 23

    Description

    Restart Servers (WWW, PC, and OCLC servers) from job_list

    Resolution


    This is what is in the$alephe_tab/job_list:

    00 04:40:00 N                      server_monitor -tks WWW
    00 04:40:20 N                      server_monitor -tks PC
    00 04:40:40 N                      server_monitor -tks OCLC
    00 04:41:00 Y                      VIR01 clear_vir01                    VIR01
    00 04:45:00 Y                      VIR01 p_sys_01                       VIR01,WWW,
    00 04:45:20 Y                      VIR01 p_sys_01                       VIR01,PC,
    00 04:45:40 Y                      VIR01 p_sys_01                       VIR01,OCLC,

     

    **To stop all server processes**, this is what is in the job_list:
    05 01:40:00 N server_monitor -ks
    05 01:50:00 N <whatever procedure you want to run with the servers down>
    05 02:00:00 N /exlibris/aleph/u16_2/alephe/server_startup


    "server_monitor -ks" stops all the servers, but p_sys_01 can be used to restart the WWW, PC and OCLC servers only. Thus, in the preceding, a
    a server_startup script is referenced. The script would need to be modeled after the $alephe_root/aleph_startup script, which starts the servers.

    server_startup would look like this:
    #!/bin/csh -f
    source /exlibris/aleph/u16_2/alephe/aleph_start
    source $aleph_proc/def_local_env
    set sav_alephver_alias = `alias alephver`
    set new_alephver_alias = 'echo "xxx" > /dev/null'
    alias alephver "$new_alephver_alias"
    #*******************************************
    # startup servers
    #*******************************************.
    <Insert the "startup servers" section from your $alephe_root/aleph_startup here.>
    rm_f_symbol
    alias alephver "$sav_alephver_alias"

    Additional Information

    server_monitor -pks" (as opposed to the usual "-tks") can be used to take down the server running on a particular port. (The "p" stands for port; "t" for type.) Example:

    > server_monitor -pks 6991

     

    Category: Background processing


    • Article last edited: 14-July-2016
    • Was this article helpful?