diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-04-19 22:17:54 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-04-19 22:17:54 +0200 |
commit | a08dab55f2691358720144c4570ff78e3bc461b3 (patch) | |
tree | 7e16036f837302c120862c34dcb8d3a7a37aeb88 /src | |
parent | f4c0514703d3f8cca215ee1ecde0736a7c007b21 (diff) |
manager: when running in test mode, do not write generated unit files to /run/systemd/generator
Diffstat (limited to 'src')
-rw-r--r-- | src/manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/manager.c b/src/manager.c index 495c8e6ba3..b59339b178 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) { |