summaryrefslogtreecommitdiff
path: root/src/core/dbus-execute.c
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2015-10-11 03:55:41 +0000
committerEvgeny Vereshchagin <evvers@ya.ru>2015-10-14 15:05:04 +0000
commit460ed929cf2081e5a445b9e8fedbbaf0da7eff44 (patch)
tree3b59f7a69d12140e4bf6386f140d36be4f179f3d /src/core/dbus-execute.c
parent7135129e0aa24f6e4c36d78ccf782761c9780cad (diff)
systemd-run: can launch units with SyslogFacility
Diffstat (limited to 'src/core/dbus-execute.c')
-rw-r--r--src/core/dbus-execute.c13
1 files changed, 13 insertions, 0 deletions
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
@@ -894,6 +894,19 @@ int bus_exec_context_set_transient_property(
}
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;