Re: [PATCH] systemd notification support

FUJITA Tomonori <[email protected]> Sun, 25 May 2014 20:18:02 +0900
Newsgroups org.kernel.vger.stgt
Message-ID <[email protected]>
On Wed, 21 May 2014 11:43:27 +0900
FUJITA Tomonori <[email protected]> wrote:

> From: Apollon Oikonomopoulos <[email protected]>
> 
> 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 <[email protected]>
> ---
>  Makefile     | 1 +
>  usr/Makefile | 8 ++++++++
>  usr/tgtd.c   | 4 ++++
>  usr/tgtd.h   | 4 ++++
>  4 files changed, 17 insertions(+)

Applied, thanks a lot!