Skip to content

Commit d712533

Browse files
committed
Merge pull request #36 from smarterclayton/support_prop_slice
Add PropSlice as a valid argument for StartTransientUnit
2 parents 3207a34 + 4c50c01 commit d712533

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

dbus/properties.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,3 +209,12 @@ func PropPropagatesReloadTo(units ...string) Property {
209209
func PropRequiresMountsFor(units ...string) Property {
210210
return propDependency("RequiresMountsFor", units)
211211
}
212+
213+
// PropSlice sets the Slice unit property. See
214+
// http://www.freedesktop.org/software/systemd/man/systemd.resource-control.html#Slice=
215+
func PropSlice(slice string) Property {
216+
return Property{
217+
Name: "Slice",
218+
Value: dbus.MakeVariant(slice),
219+
}
220+
}

0 commit comments

Comments
 (0)