Starting multiple pc_servers automatically
- Article Type: Q&A
- Product: Aleph
- Product Version: 20, 21, 22, 23
- Relevant for Installation Type: Dedicated-Direct; Direct; Local;
Question
How can multiple pc_servers (such as, 6991, 6992, and 6993) be started automatically by aleph_startup?
Answer
By default just a single pc_server is started in aleph_start:
setenv PC_SERVER_PORT 699${ALEPH_SUB_PORT}
To start multiple pc_servers, add the following lines to aleph_start.private:
setenv PC_START_HOST "6991 6992 6993 6994 6995 6996 6997 6998"
setenv PC_START_HOST "$PC_START_HOST 6999"
[Note: This second line is necessary only if there are more than 8 pc_servers to be started.]
And change $alephe_root/aleph_startup as shown below:
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
Category: System management
- Article last edited: 3/13/2014