We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3207a34 + 4c50c01 commit d712533Copy full SHA for d712533
dbus/properties.go
@@ -209,3 +209,12 @@ func PropPropagatesReloadTo(units ...string) Property {
209
func PropRequiresMountsFor(units ...string) Property {
210
return propDependency("RequiresMountsFor", units)
211
}
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