diff --git a/src/systemd.c b/src/systemd.c index 88b4ba5556d9e1e0a05cf3a90e39abd2811237d5..6686c3ce0e31fdf38d243d3e36ac9e20b4d57d14 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')) {