diff options
author | Peter Lemenkov <[email protected]> | 2014-06-06 15:29:49 +0400 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2014-11-24 17:32:48 +0100 |
commit | 59740d8fee66f3326b30ac25882b52ffada4bac2 (patch) | |
tree | f9505c9f27b84efb5a32353d0362b72d7be82f8d /erts/epmd/src/epmd.c | |
parent | 4e969748e47566c974ce526ade50c34ab62e3b26 (diff) | |
download | otp-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.c')
-rw-r--r-- | erts/epmd/src/epmd.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/erts/epmd/src/epmd.c b/erts/epmd/src/epmd.c index 9630e0cdf0..dff9bc64de 100644 --- a/erts/epmd/src/epmd.c +++ b/erts/epmd/src/epmd.c @@ -593,9 +593,11 @@ void epmd_cleanup_exit(EpmdVars *g, int exitval) for(i=0; g->argv[i] != NULL; ++i) free(g->argv[i]); free(g->argv); - } - - + } +#ifdef HAVE_SYSTEMD_SD_DAEMON_H + sd_notifyf(0, "STATUS=Exited.\n" + "ERRNO=%i", exitval); +#endif // HAVE_SYSTEMD_SD_DAEMON_H exit(exitval); } |