--no-pager Do not pipe output into a pager(like more).
| -l --fullDo not ellipsize unit names, process tree entries, journal output, or truncate unit descriptions
in the output of status, list-units, list-jobs, and list-timers
| --state=state Show only units in states :
- LOAD :
stub, loaded, not-found, error, merged, masked
- ACTIVE :
active, reloading, inactive†, failed, activating, deactivating
- SUB:
automount : dead, waiting, running, failed
busname : dead, making, registered, listening, running, sigterm, sigkill, failed
device : dead, tentative, plugged
mount : dead, mounting, mounting‑done, mounted, remounting, unmounting, mounting‑sigterm, mounting‑sigkill,
remounting‑sigterm, remounting‑sigkill, unmounting‑sigterm, unmounting‑sigkill, failed
path : dead, waiting, running, failed,
scope : dead, running, abandoned, stop‑sigterm, stop‑sigkill, failed
service : dead, start‑pre, start, start‑post, running, exited, reload, stop,
stop‑sigabrt, stop‑sigterm, stop‑sigkill, stop‑post, final‑sigterm, final‑sigkill,
failed, auto‑restart
slice : dead, active
socket : dead, start‑pre, start‑chown, start‑post, listening, running, stop‑pre,
stop‑pre‑sigterm, stop‑pre‑sigkill, stop‑post, final‑sigterm, final‑sigkill, failed
swap :
dead, activating, activating‑done, active, deactivating, activating‑sigterm, activating‑sigkill, deactivating‑sigterm,
deactivating‑sigkill, failed
target : dead, active
timer : dead, waiting, running, elapsed, failed
> systemctl --state=failed
0 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
> systemctl --state=masked
* mountkernfs.service masked inactive dead mountkernfs.service
> systemctl --state=not-found
mount: tmp
services: apparmor, auditd, bthelper, console-screen, exim4, gssproxy, kbd, nfs-blkmap, nfs-server
> systemctl --state=masked
mountkernfs.service masked inactive dead mountkernfs.service
Help: List allowed values and exit. (shown above)
| --job-mode=
When queuing a new job, how to deal with already queued jobs.
Default: replace except with isolate .
replace | (default) any conflicting pending job will be replaced.
| fail | if a requested operation conflicts with a pending job ,
causes an already
pending start job to be reversed into a stop job or vice versa), cause the operation to fail.
| replace-irreversibly | like "replace", mark the new jobs as irreversible.
This prevents future conflicting transactions from replacing these jobs (or even being enqueued while the irreversible
jobs are still pending). Irreversible jobs can still be canceled
| isolate | only valid for start and causes all other units to be stopped when the specified unit is
started. Always used when the isolate command is used.
| flush | queued jobs are canceled when the new job is enqueued.
| ignore-dependencies | all unit dependencies are ignored for this new job immediately.
If passed, no required units of the unit will be pulled in, and no ordering dependencies
will be honored.
Debugging and rescue tool and should not be used by applications.
| ignore-requirements | requirement dependencies are ignored, the ordering dependencies will still be honored. similar to ignore-dependencies.
|
| --no-block
Do not wait for the operation to finish.
Default: the job will be verified, enqueued and systemctl will wait until the unit's start-up is completed.
| | | --wait wait indefinitly for started units to terminate. (Sounds bad)<>b>
Beware of services which use RemainAfterExit=yes.
| --user|
Use service manager of the calling user.
| --system| Use service manager of the system. Default
| --no-ask-password With start and related commands, disables asking for passwords,
which must be supplied by graphical password agents.
| -f --force
With halt, poweroff, reboot or kexec, execute without shutting down all units.
All processes will be killed forcibly and all file systems are unmounted or remounted read-only.
Specified twice (except with kexec), the operation is executed immediately, without terminating any processes or
unmounting any file systems, executed by systemctl.
The system manager is not contacted.
The command should succeed even when the system manager hangs or crashed.
| --root=/path with enable/disable/is-enabled (and related commands), root path
when looking for unit files.
Operates on the file system directly, not via systemd.
| --runtime with enable/ disable/ edit, (and related commands), changes are not preserved for next boot.
Changes are not made in subdirectories of /etc but in /run, with identical immediate effects.
With set-property, make changes only temporarily.
| -H [uname@]host[:container]
--host= … |
Execute the operation remotely.
Container on the specified host. Uses ssh to communicate to the remote manager
Container names may be enumerated with machinectl -H HOST.
| |
| -M --machine=host Execute operation on a local container. Specify a container name to connect to.
|
==
-p p[,p … --property= p[,p …
With show unit/job/manager properties with, limit display to properties specified, such as "MainPID". .
Shell completion is implemented for property names.
For the manager itself, systemctl show will show all available properties. See systemd-system.conf(5).
Properties for units vary by unit type, so showing any unit lists properties pertaining to this type.
Showing any job will list properties pertaining to all jobs.
Properties are documented in systemd.unit(5), and individual unit types systemd.service(5), systemd.socket
| cat jjj… Show backing files of units.
Prints the "fragment" and "drop-ins" (source files) of units.
Each file is preceded by a comment which includes the file name.
Shows the contents of the backing files on disk,
which may not match the system manager's understanding of these units if any unit files were updated on disk and the
daemon-reload command wasn't issued since.
| set-property name
assignment …
[--runtime]
Set unit properties at runtime, changing configuration parameter
properties such as resource control settings at runtime.
Not all properties may be changed at runtime, settings in systemd.resource-control(5)) may.
The changes are applied immediately and stored on disk .
With --runtime the settings only apply until the next boot.
The syntax of the property assignment follows the syntax of assignments in unit files.
Example: systemctl set-property foobar.service CPUShares=777
If the unit appears to be inactive, the changes will be stored on disk and will be effective when the unit will be started.
Allows changing multiple properties at the same time, which is preferable over setting them individually.
Assigning the empty list to list parameters will reset the list.
| help jjj…|PID…| Show manual pages.
| reset-failed [jjj…] Default all units.
When a unit fails (example: exiting with non-zero error code, terminating abnormally or timing out), it
enters the "failed" state and its exit code and status is recorded until the service is restarted or reset with this command.
|
-q --quiet Suppress some of the output the hints about truncated log lines.
Does not suppress output of commands for which the output is the only result (like show).
Errors are always output.
| --no-legend| Do not output the legend, i.e. column headers and the footer with hints.
| -h, --help|
| --version|
| | | | | | | | | | | | | | | | | | | | | | |