systemd-run Flashcards

1
Q

systemd-run

A

systemd-run may be used to create and start a transient .service or .scope unit and run the specified COMMAND in it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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.
A
  • 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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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.

A

–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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

systemd-run [PATH options]

–path-property=NAME=VALUE

Set path unit property.

A

systemd-run [Socket options]

–socket-property=NAME=VALUE

Set socket unit property.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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.

A

–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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly