I am not familiar with Centos but I suspect there is another script being run from somewhere. What I would do is move the /etc/init.d/kamailio script somewhere safe (your home directory for eg). Then reboot and see if kamailio still starts - if it does you need to find out whihc script is being called and where it is.
If you are not running X by default you are prob in runlevel 3. If you are running X, then it will be 5. check where you runlevel scripts are pointing. e.g.
ls -al /etc/rc3.d/SXXkamailio (X = [0-9])
Cheers Jason
On Wed, Feb 1, 2012 at 4:26 PM, Uri Shacked uri.shacked@gmail.com wrote:
This email is subject to the disclaimer of Smile Communications (PTY) Ltd. at http://www.smilecoms.com/disclaimer
hi,
when i moved the /etc/init.d/kamailio file. kamailio did not start at boot. now, i set the debug level to 4 and run kamailio in both ways.
1. "/etc/init.d/kamailio start"
On Wed, Feb 1, 2012 at 5:01 PM, Jason Penton jason.penton@smilecoms.comwrote:
the resault was :
*Feb 1 19:59:04 net-ivr-KamIN-J1 kamailio: DEBUG: <core> [mem/q_malloc.c:202]: qm_malloc_init: QM_OPTIMIZE=16384, /ROUNDTO=2048 Feb 1 19:59:04 net-ivr-KamIN-J1 kamailio: DEBUG: <core> [mem/q_malloc.c:204]: qm_malloc_init: QM_HASH_SIZE=2099, qm_block size=218344 Feb 1 19:59:04 net-ivr-KamIN-J1 kamailio: DEBUG: <core> [mem/q_malloc.c:205]: qm_malloc_init(0x7f1cf585b000, 2147483648), start=0x7f1cf585b000 Feb 1 19:59:04 net-ivr-KamIN-J1 kamailio: DEBUG: <core> [mem/q_malloc.c:213]: qm_malloc_init: size= 2147483648, init_overhead=218440 Feb 1 19:59:04 net-ivr-KamIN-J1 kamailio: DEBUG: <core> [mem/shm_mem.c:203]: shm_mem_init: success*
you can see the shm_mem size is 2048Mb.
2."kamailio" the resault was :
*Feb 1 19:56:50 net-ivr-KamIN-J1 kamailio: DEBUG: <core> [mem/q_malloc.c:202]: qm_malloc_init: QM_OPTIMIZE=16384, /ROUNDTO=2048 Feb 1 19:56:50 net-ivr-KamIN-J1 kamailio: DEBUG: <core> [mem/q_malloc.c:204]: qm_malloc_init: QM_HASH_SIZE=2099, qm_block size=218344 Feb 1 19:56:50 net-ivr-KamIN-J1 kamailio: DEBUG: <core> [mem/q_malloc.c:205]: qm_malloc_init(0x7f8618310000, 33554432), start=0x7f8618310000 Feb 1 19:56:50 net-ivr-KamIN-J1 kamailio: DEBUG: <core> [mem/q_malloc.c:213]: qm_malloc_init: size= 33554432, init_overhead=218440 Feb 1 19:56:50 net-ivr-KamIN-J1 kamailio: DEBUG: <core> [mem/shm_mem.c:203]: shm_mem_init: success* ** the resault is 32Mb.
any ideas?