X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=man%2Fsystemd-run.xml;h=8f7a6229cc9c85eee398dd82c42bd474256d780b;hb=f789e0b4f891800557c74c385d0f61a0164cb16f;hp=447e607346a28e620957aa0356cce7037c66ef4a;hpb=818bf5463297a72a2861aa3b360b8b4291a3f2a8;p=thirdparty%2Fsystemd.git diff --git a/man/systemd-run.xml b/man/systemd-run.xml index 447e607346a..8f7a6229cc9 100644 --- a/man/systemd-run.xml +++ b/man/systemd-run.xml @@ -1,12 +1,7 @@ - - - - + + + @@ -14,15 +9,6 @@ systemd-run systemd - - - - Developer - Lennart - Poettering - lennart@poettering.net - - @@ -94,6 +80,16 @@ COMMAND may be omitted. In this case, systemd-run creates only a .path, .socket, or .timer unit that triggers the specified unit. + + By default, services created with systemd-run default to the type, + see the description of Type= in + systemd.service5 for + details. Note that when this type is used the service manager (and thus the systemd-run command) + considers service start-up successful as soon as the fork() for the main service process + succeeded, i.e. before the execve() is invoked, and thus even if the specified command cannot + be started. Consider using the service type (i.e. ) to + ensure that systemd-run returns successfully only if the specified command line has been + successfully started. @@ -208,6 +204,23 @@ + + + + Runs the service process with the specified working directory. Also see + WorkingDirectory= in + systemd.exec5. + + + + + + + + Similar to but uses the current working directory of the + caller for the service to execute. + + @@ -258,6 +271,15 @@ "hello" >&2 instead, which is mostly equivalent and avoids this pitfall. + + + + + A shortcut for --pty --same-dir --wait --collect --service-type=exec $SHELL, + i.e. requests an interactive shell in the current working directory, running in service context, accessible + with a single switch. + + @@ -294,6 +316,18 @@ + + + + + Defines a trigger based on system clock jumps or timezone changes for starting the + specified command. See OnClockChange= and OnTimezoneChange= in + systemd.timer5. These + options are shortcuts for --timer-property=OnClockChange=yes and + --timer-property=OnTimezoneChange=yes. These options may not be combined with + or . + +