chiark / gitweb /
log: make sure generators never log into the journal to avoid activation deadlocks
[elogind.git] / src / system-update-generator / system-update-generator.c
index 0cfccfb494bc3a96a4d4544cc2ade813ab408b66..f4e8dafebd9bdb3986e76c7f4dccfb3ebff82ead 100644 (file)
 #include "unit-name.h"
 #include "path-util.h"
 
+/*
+ * Implements the logic described in
+ * http://freedesktop.org/wiki/Software/systemd/SystemUpdates
+ */
+
 static const char *arg_dest = "/tmp";
 
 static int generate_symlink(void) {
@@ -69,7 +74,7 @@ int main(int argc, char *argv[]) {
         if (argc > 1)
                 arg_dest = argv[1];
 
-        log_set_target(LOG_TARGET_AUTO);
+        log_set_target(LOG_TARGET_SAFE);
         log_parse_environment();
         log_open();