On Monday 14 March 2011, Paul van Eldijk wrote:
Hi,
I would like to run 2 xymon-4.3.0 servers on 1 host (one for testing, one for production), each with its own user (xymon vs xymontst) and port (1984 vs. 1985). The problem is, that I get an error-message when starting the second server:
"Could not get shm of size 262144: Permission denied"
Obviously, the second server tries to access/allocate the same shm-segment as the first one. I'm guessing I have to change the source code somewhat, to allocate a different shm-=segment and/or semaphore, but I've got no clue as to how and where :( (I'm no good in programming C)
Is there a way to run 2 servers on the same host as different users and if so, how?
Can someone advice me on how to do this? I do this regulary and use 2 different users. I never got any shared memory problems doing so.
Stef