summaryrefslogtreecommitdiff
path: root/src/system-update-generator
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-11-19 21:32:11 +0100
committerLennart Poettering <lennart@poettering.net>2018-11-20 10:57:50 +0100
commitafe44c8ffd389b6296713acc8d56c68d2e44994b (patch)
tree490598d63e4a4964f6dc4c580404f9050ba1ffa7 /src/system-update-generator
parent4874191d9d766093f92059cbc0724bf2a25f6460 (diff)
downloadsystemd-afe44c8ffd389b6296713acc8d56c68d2e44994b.tar.gz
generators: introduce a common implementation for the log setup boilerplate
Diffstat (limited to 'src/system-update-generator')
-rw-r--r--src/system-update-generator/system-update-generator.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/system-update-generator/system-update-generator.c b/src/system-update-generator/system-update-generator.c
index 0f77042f48..4b7d7d58cd 100644
--- a/src/system-update-generator/system-update-generator.c
+++ b/src/system-update-generator/system-update-generator.c
@@ -4,6 +4,7 @@
#include <unistd.h>
#include "fs-util.h"
+#include "generator.h"
#include "log.h"
#include "proc-cmdline.h"
#include "special.h"
@@ -61,10 +62,7 @@ int main(int argc, char *argv[]) {
if (argc > 1)
arg_dest = argv[2];
- log_set_prohibit_ipc(true);
- log_set_target(LOG_TARGET_AUTO);
- log_parse_environment();
- log_open();
+ log_setup_generator();
umask(0022);