Skip to content

Commit a764d78

Browse files
systemctl-set-property: add page (#19219)
Co-authored-by: Managor <[email protected]>
1 parent c64e3c8 commit a764d78

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# systemctl set-property
2+
3+
> Set the specified unit properties at runtime.
4+
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#set-property%20UNIT%20PROPERTY=VALUE%E2%80%A6>.
5+
6+
- Set a property for a running service:
7+
8+
`systemctl set-property {{unit}} {{property}}={{value}}`
9+
10+
- Set multiple properties at once:
11+
12+
`systemctl set-property {{unit}} {{property_1=value_1 property_2=value_2 ...}}`
13+
14+
- Set a property only for the current runtime session (not persistent):
15+
16+
`systemctl set-property {{unit}} {{property}}={{value}} --runtime`
17+
18+
- Reset a property to its default value:
19+
20+
`systemctl set-property {{unit}} {{property}}=`
21+
22+
- Reset multiple properties to its default values:
23+
24+
`systemctl set-property {{unit}} {{property_1= property_2= ...}}`

0 commit comments

Comments
 (0)