Hi,

o Jon Bonilla (Manwe) on 10/04/2011 05:00 PM:
Hi all. While trying to start sems loading a non-existing module, I see that
sems does not start but the init script returns 0
the problem is that the parent process always exits with 0 once it is successfully forked. We should add code to open a pipe to the child and have the child send success or failure back to the parent so that the return code is proper.

Stefan



root@spcetrunk:# /etc/init.d/sems start
Starting sems: sems
Configuration:
log level:           INFO (2)
log to stderr:       no
configuration file:  /etc/sems/sems.conf
plug-in path:        /usr/lib/sems/plug-in/
daemon mode: yes
daemon UID: sems
daemon GID: sems
application: $(mapping)
.
root@spcetrunk:# echo $?
0


root@spcetrunk:~# ps -ef | grep sems
root     15485  1473  0 16:58 pts/0 00:00:00 grep sems



Oct  4 16:54:09 spcetrunk sems[13972]: [#7f6cf8a48720] [main, sems.cpp:463]
INFO: Loading plug-ins Oct  4 16:54:09 spcetrunk sems[13972]: [#7f6cf8a48720]
[load, AmPlugIn.cpp:213] INFO: AmPlugIn: loading modules:
'wav;gsm;xmlrpc2di;di_dial;stats;uac_auth;session_timer;click2dial;conference;sbc;registrar_client;reg_agent;db_reg_agent'
Oct  4 16:54:09 spcetrunk sems[13972]: [#7f6cf8a48720] [loadPlugIn,
AmPlugIn.cpp:322] ERROR:
AmPlugIn::loadPlugIn: /usr/lib/sems/plug-in//db_reg_agent.so: 
/usr/lib/sems/plug-in//db_reg_agent.so:
cannot open shared object file: No such file or directory Oct  4 16:54:09
spcetrunk sems[13972]: [#7f6cf8a48720] [load, AmPlugIn.cpp:232] ERROR: while
loading plug-in '/usr/lib/sems/plug-in//db_reg_agent.so' Oct  4 16:54:09
spcetrunk sems[13972]: [#7f6cf8a48720] [main, sems.cpp:509] INFO: Disposing
plug-ins Oct  4 16:54:09 spcetrunk sems[13972]: [#7f6cf8a48720] [main,
sems.cpp:520] INFO: Exiting (failure)


I'm running sems 1.4.2 on debian squeeze. The init script looks good to me.



cheers,

Jon

_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems



--
frafos.com
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to