X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=man%2Fsystemd-run.xml;fp=man%2Fsystemd-run.xml;h=95c1cb739611513260bc60ee46bf2a426b15b335;hp=064195a989ff9486c43eca64fba0c96d8400a99a;hb=df31a6c0fe07805cb50045fbe91c2a6e7e430562;hpb=53ede806cb58c661efbee6bbaabee6b2f0d3ce79 diff --git a/man/systemd-run.xml b/man/systemd-run.xml index 064195a98..95c1cb739 100644 --- a/man/systemd-run.xml +++ b/man/systemd-run.xml @@ -106,6 +106,18 @@ along with systemd; If not, see . generated one. + + + + + Sets a unit property for the scope or service + unit that is created. This takes an assignment in the same + format as + systemctl1's + set-property command. + + + @@ -173,7 +185,7 @@ along with systemd; If not, see . - Example + Examples The following command will log the environment variables provided by systemd to services: @@ -186,6 +198,15 @@ Sep 08 07:37:21 bupkis systemd[1]: Started /usr/bin/env. Sep 08 07:37:21 bupkis env[19948]: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin Sep 08 07:37:21 bupkis env[19948]: LANG=en_US.UTF-8 Sep 08 07:37:21 bupkis env[19948]: BOOT_IMAGE=/vmlinuz-3.11.0-0.rc5.git6.2.fc20.x86_64 + + The following command invokes the + updatedb8 + tool but lowers the block IO weight for it to 10. See + systemd.resource-control5 + for more information on the BlockIOWeight= + property. + + # systemd-run -p BlockIOWeight=10 updatedb @@ -197,6 +218,8 @@ Sep 08 07:37:21 bupkis env[19948]: BOOT_IMAGE=/vmlinuz-3.11.0-0.rc5.git6.2.fc20. systemd.service5, systemd.scope5, systemd.slice5, + systemd.exec5, + systemd.resource-control5, machinectl1