From 9652c7570fd1028d4fb0ade5447830c3f94b0868 Mon Sep 17 00:00:00 2001
From: Konstantin Osipov <kostja@tarantool.org>
Date: Wed, 28 Aug 2019 12:53:23 +0300
Subject: [PATCH] systemd: Do nothing if NOTIFY_SOCKET env variable is not set.

A follow up on gh-4305, fix failing args.test.py

(cherry picked from commit 83ef5a17e3ef23aa7a3d95a7929207b10c55363f)
---
 src/systemd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/systemd.c b/src/systemd.c
index 88b4ba5556..6686c3ce0e 100644
--- a/src/systemd.c
+++ b/src/systemd.c
@@ -53,8 +53,8 @@ static const char *sd_unix_path = NULL;
 int systemd_init() {
 	sd_unix_path = getenv("NOTIFY_SOCKET");
 	if (sd_unix_path == NULL) {
-		say_info("systemd: NOTIFY_SOCKET variable is empty, skipping");
-		return -1;
+		/* Do nothing if the path is not set. */
+		return 0;
 	}
 	if ((sd_unix_path[0] != '@' && sd_unix_path[0] != '/') ||
 	    (sd_unix_path[1] == '\0')) {
-- 
GitLab