We recently migrate our OTRS application to CentOS 7 from SUSE 11.
Our new environment stack - CentOS 7 + SeLinux + httpd + mod_perl.
I have recently found that, when a system reboot occurs,
we see the below error on logs which would in turn make system log, Agents, Groups and Fetch Mail stop working
I have read some articles on internet and found the its because of shared memory + SeLinux,[Error][Kernel::System::Log::new][110] Can't remove shm for log: Invalid argument.
using this command below , I can find the shared memory segments,
ipcs -mp
------ Shared Memory Creator/Last-op PIDs --------
shmid owner cpid lpid
1 otrs 9981 23630
Now, when the owner is OTRS, it stops working but when its apache(httpd ) then everything works fine,
So, I try to remove the shmid using this command --> ipcrm -m 1 and that helps to kill the shmid and fall back to owner as "apache" instead of otrs.
I'm looking for a permanent solution for this, when a system reboot occurs, so that the shm error disappears and works perfectly fine.
Any help is appreciated.
Note: we are yet to migrate our product to V6 which is due in sometime later
Thanks,
M.