snippetbashTip
systemctl set-property — Set the specified unit properties at runtime. See also: `systemctl revert`. More information: <https
Viewed 0 times
theunitcommandsystemctl set-propertyclipropertiesspecifiedset
linux
Problem
How to use the
systemctl set-property command: Set the specified unit properties at runtime. See also: systemctl revert. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#set-property%20UNIT%20PROPERTY=VALUE%E2%80%A6>.Solution
systemctl set-property — Set the specified unit properties at runtime. See also: systemctl revert. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#set-property%20UNIT%20PROPERTY=VALUE%E2%80%A6>.Set a property for a running service:
systemctl set-property {{unit}} {{property}}={{value}}Set multiple properties at once:
systemctl set-property {{unit}} {{property_1=value_1 property_2=value_2 ...}}Set a property only for the current runtime session (not persistent):
systemctl set-property {{unit}} {{property}}={{value}} --runtimeReset a property to its default value:
systemctl set-property {{unit}} {{property}}=Reset multiple properties to its default values:
systemctl set-property {{unit}} {{property_1= property_2= ...}}Code Snippets
Set a property for a running service
systemctl set-property {{unit}} {{property}}={{value}}Set multiple properties at once
systemctl set-property {{unit}} {{property_1=value_1 property_2=value_2 ...}}Set a property only for the current runtime session (not persistent)
systemctl set-property {{unit}} {{property}}={{value}} --runtimeReset a property to its default value
systemctl set-property {{unit}} {{property}}=Reset multiple properties to its default values
systemctl set-property {{unit}} {{property_1= property_2= ...}}Context
tldr-pages: linux/systemctl set-property
Revisions (0)
No revisions yet.