[stgt] [PATCH] systemd notification support
FUJITA Tomonori
fujita.tomonori at lab.ntt.co.jp
Sun May 25 13:18:02 CEST 2014
On Wed, 21 May 2014 11:43:27 +0900
FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp> wrote:
> From: Apollon Oikonomopoulos <apoikos at debian.org>
>
> tgtd may take some time to initialize before accepting management
> commands. Since management commands are used to bring the targets up
> during service startup, we have to make sure that tgtd is responsive
> before proceeding. To this end, we add a call to sd_notify(3) right
> before entering the event loop to signal systemd (if applicable) that
> the main process is ready.
>
> Systemd support with the relevant includes and linker flags is optional,
> controlled by the SD_NOTIFY make flag.
>
> Signed-off-by: Apollon Oikonomopoulos <apoikos at debian.org>
> ---
> Makefile | 1 +
> usr/Makefile | 8 ++++++++
> usr/tgtd.c | 4 ++++
> usr/tgtd.h | 4 ++++
> 4 files changed, 17 insertions(+)
Applied, thanks a lot!
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt
mailing list