[kamailio] add socket activation support (#293)
Having (optional) support for socket activation in Kamailio would bring several benefits: * Security: systemd can listen on privileged ports or socket paths and start Kamailio with privileges already dropped. * Major upgrades or reconfigurations of Kamailio requiring a full restart are possible without having the listening socket(s) ever go away. * Any service dependent on Kamailio doesn't have to wait for it to finish starting (or start at all). --- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/293
Think that is useful Kamailio enhancement. Here is example how use systemd activated sockets. [Example 1](https://github.com/apache/httpd/blob/969e885f2e8707ae7c5330ab24c626f7154e8f8...) Then need to get received socket info and map to `listen` directive in kamailio config for advertised IP info. If no listen directive is provided, then one of option may be applied. 1) use socket as is, without advertised IP info; 2) generate error like "systemd activated sockets not match to listen directives in kamailio config file". -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/293#issuecomment-490001037
If `sd_listen_fds` returned 0 value, then bind directly to `proto:ip_address:port` -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/293#issuecomment-490002715
Closing old feature request. If someone still has interest, the best is to make directly a PR. -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/293#issuecomment-1009907029 You are receiving this because you are subscribed to this thread. Message ID: <kamailio/kamailio/issues/293/1009907029@github.com>
Closed #293. -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/293#event-5872849986 You are receiving this because you are subscribed to this thread. Message ID: <kamailio/kamailio/issue/293/issue_event/5872849986@github.com>
participants (3)
-
Daniel-Constantin Mierla -
sergey-safarov -
zabbal