summaryrefslogtreecommitdiff
path: root/src/shared/bus-util.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/shared/bus-util.c
parent7135129e0aa24f6e4c36d78ccf782761c9780cad (diff)
systemd-run: can launch units with SyslogFacility
Diffstat (limited to 'src/shared/bus-util.c')
-rw-r--r--src/shared/bus-util.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c
index bf9320b0e0..3a45ac4064 100644
--- a/src/shared/bus-util.c
+++ b/src/shared/bus-util.c
@@ -1508,6 +1508,17 @@ int bus_append_unit_property_assignment(sd_bus_message *m, const char *assignmen
r = sd_bus_message_append(m, "v", "i", level);
+ } else if (streq(field, "SyslogFacility")) {
+ int facility;
+
+ facility = log_facility_unshifted_from_string(eq);
+ if (facility < 0) {
+ log_error("Failed to parse %s value %s.", field, eq);
+ return -EINVAL;
+ }
+
+ r = sd_bus_message_append(m, "v", "i", facility);
+
} else if (streq(field, "DeviceAllow")) {
if (isempty(eq))