systemd-run Flashcards
systemd-run
systemd-run may be used to create and start a transient .service or .scope unit and run the specified COMMAND in it.
system-d
- H, –host=[USER@]HOST, Operate on remote host.
- M, –machine=CONTAINER, Operate on local container.
- p, –property=NAME=VALUE, Set service or scope unit property.
- r, –remain-after-exit, Leave service alive till explicitly stopped.
- d, –same-dir, Inherit working dir from caller.
- E, –setenv=NAME=VALUE, Set environment.
- t, –pty, Run service on pseudo TTY as STDIN/STDOUT/STDERR
- P, –pipe, Pass STDIN/STDOUT/STDERR directly to service.
- q, –quiet
- G, –collect, Unload unit after it ran, even when failed.
- S, Invoke a $SHELL interactively.
systemd-run
–no-ask-password
–user, Run as user unit.
–scope, Run this as scope unit property.
–unit=UNIT, Run under UNIT name.
–description=TEXT
–slice=SLICE, Run in specified slice.
–wait, Wait until service stopped again.
–send-sighup
–service-type=TYPE
–uid=USER, Run as system user.
–gid=GROUP, Run as system group.
–nice=NICE
–working-directory=PATH
systemd-run [PATH options]
–path-property=NAME=VALUE
Set path unit property.
systemd-run [Socket options]
–socket-property=NAME=VALUE
Set socket unit property.
systemd-run [Timer options]
–on-active=SECONDS, Run after SECONDS delay.
–on-boot=SECONDS, Run SECONDS after machine was booted up.
–on-startup=SECONDS, Run SECONDS after systemd activation.
–on-unit-active=SECONDS, Run SECONDS after the last activation.
–on-unit-inactive=SECONDS, Run SECONDS after the last deactivation.
–on-calendar=SPEC, Realtime timer.
–timer-property=NAME=VALUE, Set timer unit property.