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

    How to start multiple pc_servers with p_sys_01

     

    • Product: Aleph
    • Product Version: 20, 21, 22, 23
    • Relevant for Installation Type: Dedicated-Direct, Direct, Local, Total Care

     

    Description

    (As described in the article " Restart Servers from job_list ") we stop/restart various servers when running clear_vir01.  But the sys-01 Service starts only one pc_server.  We need it to restart multiple.

    Resolution

    Change the following lines in the $aleph_proc/p_sys_01 from:

    a1:
            if ($p_port != "") then
                set port1 = "$p_port"
            else
                set port1 = "$l_pc_server_port"
            endif

            csh -f $aleph_proc/pc_server $port1 >& /dev/null &
            goto p_sys_01_exit


    to:

    a1:
            source /exlibris/aleph/u23_1/alephe/aleph_start
            source $aleph_proc/def_local_env

            set sav_alephver_alias = `alias alephver`
            set new_alephver_alias = 'echo "xxx" > /dev/null'
            set THIS_HOST = `hostname`

            alias alephver "$new_alephver_alias"


            if  (! $?PC_START_HOST) then
                echo "starting pc_server... "
                csh -f $aleph_proc/pc_server $l_pc_server_port >& /dev/null &
                echo " "
            else
                foreach thishost ($PC_START_HOST)
                       echo "starting pc_server... " $thishost
                       csh -f $aleph_proc/pc_server $thishost >& /dev/null &
                       echo " "
                end
            endif

    [Note:  The preceding presumes that you have made the changes to make the multiple pc_servers be started automaticlly by ./aleph_startup, as described in the article " Starting multiple pc_servers automatically ".


     

     


    • Article last edited: 8-Mar-2018
    • Was this article helpful?