p_sys_01 starts only 2 pc_servers (instead of 5)
- Article Type: General
- Product: Aleph
- Product Version: 20
Description:
I have my script restart the PC_server on a specific port using the command line given. When I do that, however, it only starts two processes instead of the usual 5 processes I get if I run this from the util menu.
Then, when I try to connect to the server at that port, it fails the first time but then spawns off a third process. It seems that that third process is what provides the actual connection because a second connection attempt will succeed. But I only ever get three processes running instead of the five called for in my aleph_start.
I assume that what is happening is that I'm not getting all of my environment set up properly. The values in aleph_start (at the least) are not getting set in the shell when I run:
csh -f /exlibris/aleph/a20_1/aleph/proc/p_sys_01 ABC01,PC,6916
Is there a suggested way to make sure the right values get into place? Or another parameter I need to add when calling the program?
Resolution:
Do find the same with p_sys_01 for WWW?
I find on our server, for *either* WWW or PC, p_sys_01 starts the main process plus 5 child processes.
Please enter this command:
> echo $N_OF_SERVERS
It should respond with 5. If not, do this:
> setenv N_OF_SERVERS 5
and try the p_sys_01 again.
I believe your aleph_start has this, but it may be that it's somehow getting set lower(?)
You could change the a1 and a2 sections of $aleph_proc/p_sys_01 to force it to 5.
[From site:]
I found that the problem was that it was starting this repeatedly because the restart was within a loop rather than outside the loop. Once I determined that and only started it one time, it started more properly, with the right number of servers.
- Article last edited: 10/8/2013