X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=man%2Fsystemd.xml;h=5287bdaba89a47a4c1af0f5f88b80cace01d52b3;hb=9066811e5ab12367b6d87f1659b8ed98dabd554d;hp=e8f022f559758ef1b50e6516b685d3e7f20b89a4;hpb=8ce202fadfc038d0ef50ba5029b1ec3215ef8182;p=thirdparty%2Fsystemd.git diff --git a/man/systemd.xml b/man/systemd.xml index e8f022f5597..5287bdaba89 100644 --- a/man/systemd.xml +++ b/man/systemd.xml @@ -392,6 +392,25 @@ systemd.special7 for details about these target units. + systemd only keeps a minimal set of units loaded into memory. Specifically, the only units that are kept + loaded into memory are those for which at least one of the following conditions is true: + + + It is in an active, activating, deactivating or failed state (i.e. in any unit state except for inactive) + It has a job queued for it + It is a dependency of some sort of at least one other unit that is loaded into memory + It has some form of resource still allocated (e.g. a service unit that is inactive but for which + a process is still lingering that ignored the request to be terminated) + It has been pinned into memory programmatically by a D-Bus call + + + systemd will automatically and implicitly load units from disk — if they are not loaded yet — as soon as + operations are requested for them. Thus, in many respects, the fact whether a unit is loaded or not is invisible to + clients. Use systemctl list-units --all to comprehensively list all units currently loaded. Any + unit for which none of the conditions above applies is promptly unloaded. Note that when a unit is unloaded from + memory its accounting data is flushed out too. However, this data is generally not lost, as a journal log record + is generated declaring the consumed resources whenever a unit shuts down. + Processes systemd spawns are placed in individual Linux control groups named after the unit which they belong to in the private systemd hierarchy. (see + Note that transactions are generated independently of a unit's + state at runtime, hence, for example, if a start job is requested on an + already started unit, it will still generate a transaction and wake up any + inactive dependencies (and cause propagation of other jobs as per the + defined relationships). This is because the enqueued job is at the time of + execution compared to the target unit's state and is marked successful and + complete when both satisfy. However, this job also pulls in other + dependencies due to the defined relationships and thus leads to, in our + our example, start jobs for any of those inactive units getting queued as + well. + systemd contains native implementations of various tasks that need to be executed as part of the boot process. For example, it sets the hostname or configures the loopback network device. It @@ -561,16 +591,15 @@ SIGINT - Upon receiving this signal the systemd system - manager will start the - ctrl-alt-del.target unit. This is mostly - equivalent to systemctl start ctrl-alt-del.target - --job-mode=replace-irreversible. If this signal is - received more than 7 times per 2s, an immediate reboot is - triggered. Note that pressing Ctrl-Alt-Del on the console - will trigger this signal. Hence, if a reboot is hanging, - pressing Ctrl-Alt-Del more than 7 times in 2s is a relatively - safe way to trigger an immediate reboot. + Upon receiving this signal the systemd system manager will start the + ctrl-alt-del.target unit. This is mostly equivalent to + systemctl start ctrl-alt-del.target --job-mode=replace-irreversible. If + this signal is received more than 7 times per 2s, an immediate reboot is triggered. Note + that pressing + CtrlAltDel on the + console will trigger this signal. Hence, if a reboot is hanging, pressing + CtrlAltDel more than + 7 times in 2 seconds is a relatively safe way to trigger an immediate reboot. systemd user managers treat this signal the same way as SIGTERM. @@ -1083,7 +1112,7 @@ quiet Turn off status output at boot, much like - systemd.show_status=false would. Note that + systemd.show_status=no would. Note that this option is also read by the kernel itself and disables kernel log output. Passing this option hence turns off the usual output from both the system manager and the kernel.