How to restart the SIP2 server via job daemon (from job list)
- Product: Aleph
- Product Version: 20, 21, 22, 23
- Relevant for Installation Type: Dedicated-Direct, Direct, Local, Total Care
Desired Outcome Goal:
Restart the SIP2 server via job daemon
Procedure:
You will need to place a "sip2_startup" file as shown below into the $aleph_proc directory on your server.
Add the following lines to $alephe_tab/job_list
$alephe_tab/job_list:
! 2 3 4 5
!!-!!!!!!!!-!-!!!!!!!!!!!!!!!!!!!!-!!!!!!!!!!!!!!>
xx 02:42:00 N server_monitor -tks SC_SERVER
xx 02:44:00 N sip2_restart.log csh -f /exlibris/aleph/a23_1/aleph/proc/sip2_startup
$aleph_proc/sip2_startup
#!/bin/csh -f
source $alephe_root/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"
if ($?SIP2_STARTUP_LIBS) then
echo "starting sip2_server..."
@ n = $l_sip2_server_port
foreach lib ($SIP2_STARTUP_LIBS)
start_proc00 $lib
echo " - $active_library"
csh -f $aleph_proc/sip2_server $n >& /dev/null &
@ n ++
end
echo " "
endif
if ($?SC_STARTUP_LIBS) then
echo "starting sc_server..."
@ n = $l_sc_server_port
foreach lib ($SC_STARTUP_LIBS)
start_proc00 $lib
echo " - $active_library"
csh -f $aleph_proc/sc_server $n >& /dev/null &
@ n ++
end
echo " "
endif
echo " "
echo "SIP/SC done "
exit:
alias alephver "$sav_alephver_alias"
rm_f_symbol
Additional Information
The script $aleph_proc/sip2_startup is integrated into the Aleph standard version with rep_change #002085 (v.23) and #002379 (v.22).
Description: SIP2 - A new script for restart sip2 server
Solution: A new script has been added to restart the sip2 server [...]
- Article last edited: 04-April-2017