diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-09-27 17:33:09 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-10-05 13:06:44 +0200 |
commit | acd53eaa7efb14df392d8347cb689348ae049f59 (patch) | |
tree | 7ed375880cf5f7225c3b46089c0cd36a7c5d7963 /src/shared/generator.c | |
parent | unit: when JobTimeoutSec= is turned off, implicitly turn off JobRunningTimeou... (diff) | |
download | systemd-acd53eaa7efb14df392d8347cb689348ae049f59.tar.xz systemd-acd53eaa7efb14df392d8347cb689348ae049f59.zip |
generator: when we insert a '\n', actually place a proper newline, too
Diffstat (limited to 'src/shared/generator.c')
-rw-r--r-- | src/shared/generator.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/shared/generator.c b/src/shared/generator.c index 86e9356dd1..18fc469098 100644 --- a/src/shared/generator.c +++ b/src/shared/generator.c @@ -209,8 +209,10 @@ int generator_write_timeouts( return write_drop_in_format(dir, unit, 50, "device-timeout", "# Automatically generated by %s\n\n" - "[Unit]\nJobRunningTimeoutSec=%s", - program_invocation_short_name, timeout); + "[Unit]\n" + "JobRunningTimeoutSec=%s", + program_invocation_short_name, + timeout); } int generator_write_device_deps( @@ -262,6 +264,10 @@ int generator_write_initrd_root_device_deps(const char *dir, const char *what) { return write_drop_in_format(dir, SPECIAL_INITRD_ROOT_DEVICE_TARGET, 50, "root-device", "# Automatically generated by %s\n\n" - "[Unit]\nRequires=%s\nAfter=%s", - program_invocation_short_name, unit, unit); + "[Unit]\n" + "Requires=%s\n" + "After=%s", + program_invocation_short_name, + unit, + unit); } |