diff options
author | Mike Kazantsev <mk.fraggod@gmail.com> | 2010-10-26 15:18:13 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-10-26 15:18:13 +0200 |
commit | 0320828cac4fb7b704c5dbd365979cb3ac5ba4d2 (patch) | |
tree | 8a9268c680df72051e2eaececd1bbb68c3df17d1 /src | |
parent | b9ba604e8720c30deb7095b049b577eec1cbb74a (diff) |
service: fix sysv-less build
Diffstat (limited to 'src')
-rw-r--r-- | src/service.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c index dac4adaa6a..46d7bbb1c7 100644 --- a/src/service.c +++ b/src/service.c @@ -1585,6 +1585,7 @@ static int service_spawn( goto fail; } +#ifdef HAVE_SYSV_COMPAT /* Make sure we set TERM=linux for SysV scripts, since some * require it to be set from the kernel */ if (s->sysv_path && !strv_env_get(s->meta.manager->environment, "TERM")) @@ -1592,6 +1593,7 @@ static int service_spawn( r = -ENOMEM; goto fail; } +#endif if (!(final_env = strv_env_merge(2, s->meta.manager->environment, |