From a08dab55f2691358720144c4570ff78e3bc461b3 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 19 Apr 2011 22:17:54 +0200 Subject: [PATCH] manager: when running in test mode, do not write generated unit files to /run/systemd/generator --- src/manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manager.c b/src/manager.c index 495c8e6b..b59339b1 100644 --- a/src/manager.c +++ b/src/manager.c @@ -2937,7 +2937,7 @@ void manager_run_generators(Manager *m) { const char *p; char user_path[] = "/tmp/systemd-generator-XXXXXX"; - if (m->running_as == MANAGER_SYSTEM) { + if (m->running_as == MANAGER_SYSTEM && getpid() == 1) { p = "/run/systemd/generator"; if (mkdir_p(p, 0755) < 0) { -- 2.39.5