summaryrefslogtreecommitdiffstats
path: root/man/systemctl.xml (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix typover4a3 days1-1/+1
|
* man: grammar fixes for introductory adverbs/phrasesJan Engelhardt2024-12-251-2/+2
|
* man: expand word contractionsJan Engelhardt2024-12-251-15/+15
| | | | For written text, contractions are not normally used.
* man: asorted fixesYu Watanabe2024-11-231-1/+1
| | | | Closes #35307.
* man: drop whitespace from final <programlisting> linesZbigniew Jędrzejewski-Szmek2024-11-081-2/+2
| | | | | | In the troff output, this doesn't seem to make any difference. But in the html output, the whitespace is sometimes preserved, creating an additional gap before the following content. Drop it everywhere to avoid this.
* man: consolidate list of active unit states into a shared tableLuca Boccassi2024-10-041-6/+9
| | | | | | Avoids the need to maintain the same list over and over again, and link it to the defition table in the implementation as a reminder too
* core: do BindMount/MountImage operations in async control processLuca Boccassi2024-08-291-1/+2
| | | | | | | | | | | | | | | | | | These operations might require slow I/O, and thus might block PID1's main loop for an undeterminated amount of time. Instead of performing them inline, fork a worker process and stash away the D-Bus message, and reply once we get a SIGCHILD indicating they have completed. That way we don't break compatibility and callers can continue to rely on the fact that when they get the method reply the operation either succeeded or failed. To keep backward compatibility, unlike reload control processes, these are ran inside init.scope and not the target cgroup. Unlike ExecReload, this is under our control and is not defined by the unit. This is necessary because previously the operation also wasn't ran from the target cgroup, so suddenly forking a copy-on-write copy of pid1 into the target cgroup will make memory usage spike, and if there is a MemoryMax= or MemoryHigh= set and the cgroup is already close to the limit, it will cause an OOM kill, where previously it would have worked fine.
* man: use standard-options for --no-ask-password everywhereMike Yuan2024-08-211-20/+1
|
* logind: always check for inhibitor locksLuca Boccassi2024-07-251-7/+5
| | | | | | | | | | | | | | | | | | | | | | | Currently inhibitors are bypassed unless an explicit request is made to check for them, or even in that case when the requestor is root or the same uid as the holder of the lock. But in many cases this makes it impractical to rely on inhibitor locks. For example, in Debian there are several convoluted and archaic workarounds that divert systemctl/reboot to some hacky custom scripts to try and enforce blocking accidental reboots, when it's not expected that the requestor will remember to specify the command line option to enable checking for active inhibitor locks. Also in many cases one wants to ensure that locks taken by a user are respected by actions initiated by that same user. Change logind so that inhibitors checks are not skipped in these cases, and systemctl so that locks are checked in order to show a friendly error message rather than "permission denied". Add new block-weak and delay-weak modes that keep the previous behaviour unchanged.
* systemctl-enable: support reenable --nowMike Yuan2024-07-091-5/+8
| | | | | | | Also, instead of silently continuing when template units are specified with enable --now, print a warning and skip them. Closes #31541
* man/systemctl: --no-reload is honored by mask/unmask/preset tooMike Yuan2024-07-041-3/+3
|
* logind: implement maintenance timeLudwig Nussel2024-06-201-1/+3
| | | | | | | | | | | | | | | | | | | | | Update frameworks that work automatically in the background occasionally need to schedule reboots. Systemd-logind already provides a nice mechanism to schedule shutdowns, send notfications and block logins short before the time. Systemd has a framework for calendar events, so we may conveniently use logind to define a maintenance time for reboots. The existing ScheduleShutdown DBus method in logind expects a usec_t with an absolute time. Passing USEC_INFINITY as magic value now tells logind to take the time from the configured maintenance time if set. "shutdown -r" leverages that and uses the maintenance time automatically if configured. The one minute default is still used if nothing was specified. Similarly the new 'auto' setting for the --when parameter of systemctl uses the maintenance time if configured or a one minute timer like the shutdown command.
* docs,man: Avoid some ambiguous uses of "may not"Colin Watson2024-05-081-1/+1
| | | | | | | | | | | | Like much English text, the systemd documentation uses "may not" in the sense of both "will possibly not" and "is forbidden to". In many cases this is OK because the context makes it clear, but in others I felt it was possible to read the "is forbidden to" sense by mistake: in particular, I tripped over "the target file may not exist" in systemd.unit(5) before realizing the correct interpretation. Use "might not" or "may choose not to" in these cases to make it clear which sense we mean.
* systemctl: do not fall back to StartUnit automatically for sleep operationsMike Yuan2024-05-081-19/+32
| | | | | | | | In the majority of cases, this is caused by sleep_supported() returning error. Hence it's very likely that it would fail again, so the fallback is not really useful. Instead, honor the --force option for these verbs.
* systemctl: Implement --wait for kill commandDaan De Meyer2024-05-011-8/+10
| | | | | | TEST-26-SYSTEMCTL is racy as we call systemctl is-active immediately after systemctl kill. Let's implement --wait for systemctl kill and use it in TEST-26-SYSTEMCTL to avoid the race.
* man: document that "systemctl set-environment" cannot be used to unset env ↵Lennart Poettering2024-04-221-25/+43
| | | | | | vars configured via config file Fixes: #28167
* systemctl: add --clean= values to documentation and shell completionLuca Boccassi2024-04-181-0/+45
|
* man: fix incorrect XML in man pageSam Leonard2024-04-151-2/+2
|
* man: document the new conceptsLennart Poettering2024-03-141-0/+1
|
* timedatectl: add -PZbigniew Jędrzejewski-Szmek2024-03-041-5/+1
|
* systemctl: don't warn unit needs reload if --no-warnMike Yuan2024-02-141-1/+4
|
* man: use same version in public and system ident.David Tardon2023-12-251-1/+1
|
* man: use <warning> for warningsDavid Tardon2023-12-251-5/+9
|
* man: use <simplelist> for 'See also' sectionsDavid Tardon2023-12-231-13/+13
| | | | | This is just a slight markup improvement; there should be no difference in rendering.
* systemctl: configure boot loader options only when going through firmwareMike Yuan2023-12-201-11/+14
| | | | Fixes #30497
* man: avoid potential shell expansion in systemctl's exampleFrantisek Sumsal2023-12-181-1/+1
| | | | Resolves: #30014
* systemctl: fix typoYu Watanabe2023-12-101-1/+1
| | | | Follow-up for 329050c5e2c7e9561699f87b5edb72edd0d54c96.
* Merge pull request #30302 from keszybz/systemd-edit-stdinZbigniew Jędrzejewski-Szmek2023-12-061-110/+132
|\ | | | | systemctl edit --stdin
| * systemctl: add "edit --stdin"Zbigniew Jędrzejewski-Szmek2023-12-051-20/+43
| | | | | | | | | | | | | | | | | | | | This is a fancy wrapper around "cat <<EOF", but: - the user doesn't need to figure out the file name, - parent directories are created automatically, - daemon-reload is implied, so it's a convenient way to create units or drop-ins. Closes https://github.com/systemd/systemd/issues/21862.
| * man/systemctl: fix indentation of <xi:include>'sZbigniew Jędrzejewski-Szmek2023-12-021-91/+90
| |
* | systemctl: add support for Sleep() logind callMike Yuan2023-12-051-0/+18
|/
* man: many fixes systemd-vmspawn(1)Zbigniew Jędrzejewski-Szmek2023-11-071-4/+4
| | | | | | - version information - indentation and missing tags - mkosi and qemu don't need root
* man: more hyperlinks and other fixesZbigniew Jędrzejewski-Szmek2023-11-061-3/+3
| | | | Closes https://github.com/systemd/systemd/issues/29814.
* man,docs: suffix directories with /Mike Yuan2023-10-211-2/+2
|
* systemctl: automatically softreboot/kexec if set up on rebootLuca Boccassi2023-10-201-0/+15
| | | | | | | | | Automatically softreboot if the nextroot has been set up with an OS tree, or automatically kexec if a kernel has been loaded with kexec --load. Add SYSTEMCTL_SKIP_AUTO_KEXEC and SYSTEMCTL_SKIP_AUTO_SOFT_REBOOT to skip the automated switchover.
* systemctl: is-failed: check if system is degraded when no unit givenMike Yuan2023-10-181-7/+6
| | | | Closes #3335
* mount-util: use mount beneath to replace previous namespace mountLuca Boccassi2023-10-161-0/+8
| | | | | | Instead of mounting over, do an atomic swap using mount beneath, if available. This way assets can be mounted again and again (e.g.: updates) without leaking mounts.
* systemctl-enable: warn if disabled/masked units has active triggering unitsMike Yuan2023-09-271-1/+10
| | | | Closes #311
* systemctl-start: suppress the triggering unit warning when --no-warnMike Yuan2023-09-271-1/+8
|
* treewide: split commandline into command lineJoerg Behrmann2023-09-201-1/+1
|
* man: update version informationAbderrahim Kitouni2023-09-191-10/+44
| | | | | | | | As I noticed a lot of missing information when trying to implement checking for missing info. I reimplemented the version information script to be more robust, and here is the result. Follow up to ec07c3c80b2b1bfa6788500202006ff85f5ae4f4
* man: add version infoAbderrahim Kitouni2023-08-291-17/+163
| | | | | | | | This tries to add information about when each option was added. It goes back to version 183. The version info is included from a separate file to allow generating it, which would allow more control on the formatting of the final output.
* man: fix typosErik Sjölund2023-07-271-1/+1
|
* man: move <varlistentry> in <variablelist>Yu Watanabe2023-07-121-11/+11
|
* man/systemctl: document --job-mode=restart-dependenciesMike Yuan2023-07-051-3/+8
| | | | Follow-up for 09d04ad325473e05e23e6ba8382d7de1dd819bda
* systemctl: implement a new "whoami" verb, that just returns unit of caller/PIDLennart Poettering2023-07-041-0/+9
|
* tree-wide: "<n>bit" → "<n>-bit"Zbigniew Jędrzejewski-Szmek2023-07-021-1/+1
| | | | In some places, "<n> bits" is used when more appropriate.
* tree-wide: when in doubt use greek small letter mu rather than micro symbolLennart Poettering2023-06-141-2/+2
| | | | | | | | Doesn't really matter since the two unicode symbols are supposedly equivalent, but let's better follow the unicode recommendations to prefer greek small letter mu, as per: https://www.unicode.org/reports/tr25
* man: document that "systemctl mask" doesn't work for units whose file is in /etcLennart Poettering2023-06-081-7/+18
| | | | Fixes: #27965
* man: document the soft reboot operationLennart Poettering2023-06-021-0/+18
|