From 460ed929cf2081e5a445b9e8fedbbaf0da7eff44 Mon Sep 17 00:00:00 2001 From: Evgeny Vereshchagin Date: Sun, 11 Oct 2015 03:55:41 +0000 Subject: systemd-run: can launch units with SyslogFacility --- src/core/dbus-execute.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/core/dbus-execute.c') diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c index 73290002f6..b87192a9ae 100644 --- a/src/core/dbus-execute.c +++ b/src/core/dbus-execute.c @@ -893,6 +893,19 @@ int bus_exec_context_set_transient_property( unit_write_drop_in_private_format(u, mode, name, "SyslogLevel=%i\n", level); } + return 1; + } else if (streq(name, "SyslogFacility")) { + int facility; + + r = sd_bus_message_read(message, "i", &facility); + if (r < 0) + return r; + + if (mode != UNIT_CHECK) { + c->syslog_priority = (facility << 3) | LOG_PRI(c->syslog_priority); + unit_write_drop_in_private_format(u, mode, name, "SyslogFacility=%i\n", facility); + } + return 1; } else if (streq(name, "Nice")) { int n; -- cgit v1.2.3-54-g00ecf