]> err.no Git - systemd/commitdiff
sysctl: don't consider missing kernel options fatal
authorLennart Poettering <lennart@poettering.net>
Thu, 18 Nov 2010 22:03:42 +0000 (23:03 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 18 Nov 2010 22:03:42 +0000 (23:03 +0100)
src/sysctl.c

index c57210e28dbf281173d8801faf770a73c5c32b6b..6b0e9aa3ba0f2971e576135e70f3479f80efa104 100644 (file)
@@ -54,7 +54,9 @@ static void apply_sysctl(const char *property, const char *value) {
 
         if ((r = write_one_line_file(p, value)) < 0) {
                 log_warning("Failed to write '%s' to '%s': %s", value, p, strerror(-r));
-                exit_code = r;
+
+                if (r != -ENOENT)
+                        exit_code = r;
         }
 
         free(p);