[sr-dev] [kamailio/kamailio] support sd_notify() to improve systemd integration (#2139)

sergey-safarov notifications at github.com
Fri Nov 22 09:35:34 CET 2019


I combined Victor commit and Daniel commit module registered now.
Think need apply
```diff
diff --git a/src/modules/systemdops/systemdops_mod.c b/src/modules/systemdops/systemdops_mod.c
index 0ac15426d1..4672f47d1a 100644
--- a/src/modules/systemdops/systemdops_mod.c
+++ b/src/modules/systemdops/systemdops_mod.c
@@ -69,7 +69,8 @@ void ksr_sd_app_shutdown(void)
 int mod_register(char *path, int *dlflags, void *p1, void *p2)
 {
        sr_corecb_t *cbp = sr_corecb_get();
-       if(cbp) {
+       if(!cbp) {
+               SYS_MEM_ERROR;
                return -1;
        }
        cbp->app_ready = ksr_sd_app_ready;
```

-- 
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/2139#issuecomment-557442084
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20191122/b4b017b1/attachment.html>


More information about the sr-dev mailing list