X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fsystemd.git;a=blobdiff_plain;f=src%2Fhome%2Fhomed-home.c;fp=src%2Fhome%2Fhomed-home.c;h=c7156c0d5070403a2a70f143f4945b7c32d17950;hp=db88d60c094249176110bd215b7a660e9f62c04d;hb=cc9886bc207021fa4b0a4687f1beb88e0457d21e;hpb=79a6b4cc55ace84481a7faecfff8dd36b51b6cda diff --git a/src/home/homed-home.c b/src/home/homed-home.c index db88d60c094..c7156c0d507 100644 --- a/src/home/homed-home.c +++ b/src/home/homed-home.c @@ -1011,11 +1011,17 @@ static int home_start_work(Home *h, const char *verb, UserRecord *hr, UserRecord if (r < 0) return r; if (r == 0) { - const char *homework; + const char *homework, *suffix, *unix_path; /* Child */ - if (setenv("NOTIFY_SOCKET", "/run/systemd/home/notify", 1) < 0) { + suffix = getenv("SYSTEMD_HOME_DEBUG_SUFFIX"); + if (suffix) + unix_path = strjoina("/run/systemd/home/notify.", suffix); + else + unix_path = "/run/systemd/home/notify"; + + if (setenv("NOTIFY_SOCKET", unix_path, 1) < 0) { log_error_errno(errno, "Failed to set $NOTIFY_SOCKET: %m"); _exit(EXIT_FAILURE); }