aboutsummaryrefslogtreecommitdiffstats
path: root/erts/epmd/src/epmd_srv.c
diff options
context:
space:
mode:
authorPeter Lemenkov <[email protected]>2014-06-06 15:29:49 +0400
committerLukas Larsson <[email protected]>2014-11-24 17:32:48 +0100
commit59740d8fee66f3326b30ac25882b52ffada4bac2 (patch)
treef9505c9f27b84efb5a32353d0362b72d7be82f8d /erts/epmd/src/epmd_srv.c
parent4e969748e47566c974ce526ade50c34ab62e3b26 (diff)
downloadotp-59740d8fee66f3326b30ac25882b52ffada4bac2.tar.gz
otp-59740d8fee66f3326b30ac25882b52ffada4bac2.tar.bz2
otp-59740d8fee66f3326b30ac25882b52ffada4bac2.zip
epmd: Added systemd notify support to EPMD
Signed-off-by: Peter Lemenkov <[email protected]>
Diffstat (limited to 'erts/epmd/src/epmd_srv.c')
-rw-r--r--erts/epmd/src/epmd_srv.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/erts/epmd/src/epmd_srv.c b/erts/epmd/src/epmd_srv.c
index 48fd7a5f9c..18d898a915 100644
--- a/erts/epmd/src/epmd_srv.c
+++ b/erts/epmd/src/epmd_srv.c
@@ -399,8 +399,11 @@ void run(EpmdVars *g)
}
select_fd_set(g, listensock[i]);
}
-#ifdef HAVE_SYSTEMD_SD_DAEMON_H
+#ifdef HAVE_SYSTEMD_SD_DAEMON_H
}
+ sd_notifyf(0, "READY=1\n"
+ "STATUS=Processing port mapping requests...\n"
+ "MAINPID=%lu", (unsigned long) getpid());
#endif
dbg_tty_printf(g,2,"entering the main select() loop");