]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/core/dbus-slice.c
man/run0: Describe environment variables set (#32622)
[thirdparty/systemd.git] / src / core / dbus-slice.c
CommitLineData
db9ecf05 1/* SPDX-License-Identifier: LGPL-2.1-or-later */
a016b922 2
4ad49000 3#include "dbus-cgroup.h"
4ad49000 4#include "dbus-slice.h"
cf0fbc49
TA
5#include "slice.h"
6#include "unit.h"
a016b922 7
718db961
LP
8const sd_bus_vtable bus_slice_vtable[] = {
9 SD_BUS_VTABLE_START(0),
10 SD_BUS_VTABLE_END
11};
8e2af478
LP
12
13int bus_slice_set_property(
14 Unit *u,
15 const char *name,
718db961 16 sd_bus_message *message,
2e59b241 17 UnitWriteFlags flags,
718db961 18 sd_bus_error *error) {
8e2af478
LP
19
20 Slice *s = SLICE(u);
8e2af478
LP
21
22 assert(name);
23 assert(u);
8e2af478 24
2e59b241 25 return bus_cgroup_set_property(u, &s->cgroup_context, name, message, flags, error);
8e2af478
LP
26}
27
28int bus_slice_commit_properties(Unit *u) {
29 assert(u);
30
31 unit_realize_cgroup(u);
bc432dc7 32
8e2af478
LP
33 return 0;
34}