summaryrefslogtreecommitdiff
path: root/src/systemctl/systemctl-start-special.c
Commit message (Collapse)AuthorAgeFilesLines
* systemctl: rework 'if' to 'switch' statementLennart Poettering2023-04-291-11/+17
|
* systemctl: add option --when for scheduled shutdownMike Yuan2023-03-141-11/+22
| | | | | | | Pass an empty string or "cancel" will cancel the action. Pass "show" will show the scheduled actions. Replaces #17258
* runtime-scope: add helper that turns RuntimeScope enum into --system/--user ↵Lennart Poettering2023-03-101-1/+1
| | | | string
* basic: add RuntimeScope enumLennart Poettering2023-03-101-2/+2
| | | | | | | | | | | | In various tools and services we have a per-system and per-user concept. So far we sometimes used a boolean indicating whether we are in system mode, or a reversed boolean indicating whether we are in user mode, or the LookupScope enum used by the lookup path logic. Let's address that, in introduce a common enum for this, we can use all across the board. This is mostly just search/replace, no actual code changes.
* fundamental: rework IN_SET() to require at least three argumentsLennart Poettering2023-01-021-1/+1
| | | | | | | If less than three parameters are passed a simple comparison is the better choice. Lo and behold this found two pretty bad typos.
* systemctl: deprecate passing positional argument to reboot completelyMike Yuan2022-11-271-13/+2
| | | | | | | | (follow-up of #15958) In #15958 we deprecated passing positional argument to reboot by generate a warning. It's been two years now and I believe it can be dropped completely, as per requested in #15773.
* bootctl: add --root and --imageLuca Boccassi2022-07-081-1/+1
| | | | Operate on image/directory, and also take files to install from it
* Merge pull request #22649 from ↵Zbigniew Jędrzejewski-Szmek2022-03-291-2/+2
|\ | | | | | | | | keszybz/symlink-enablement-yet-again-punish-me-harder Fixups to the unit enablement logic
| * Rename UnitFileScope to LookupScopeZbigniew Jędrzejewski-Szmek2022-03-291-2/+2
| | | | | | | | | | | | | | | | | | As suggested in https://github.com/systemd/systemd/pull/22649/commits/8b3ad3983f5440eef812b34e5ed862ca59fdf7f7#r837345892 The define is generalized and moved to path-lookup.h, where it seems to fit better. This allows a recursive include to be removed and in general makes things simpler.
* | bootspec: normalize function names/parameter listsLennart Poettering2022-03-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This normalizes naming of functions operating on BootConfig objects. Let's always call them boot_config_xyz(), like our usual way to name stuff. moreover, move the BootConfig parameter to the beginning, as it's not a return value (which we typically move to the end of the parameter list), but simply an object, that even happens to be initialized already. With these changes the functions are more like our usual way to call things, and less surprises are good.
* | bootspec: assess default/selected entries *after* we augmented entry list ↵Lennart Poettering2022-03-281-1/+5
|/ | | | | | with entries from loader Fixes: #22580
* systemctl: systematically rename verb entrypoints verb_xyz()Lennart Poettering2022-02-221-5/+5
| | | | | | | | | Let's clean up our function naming a bit, and always name the verb_xyz(), where the xyz maps to the command line verb as closely as possible. No actual code changes, just an attempt to make the systemctl sources a bit more systematic, and less surprising.
* systemctl: shutdown don't fallback on auth failLudwig Nussel2022-01-251-2/+2
| | | | | | For shutdowns don't fall back to starting the target directly if talking to logind failed with auth failure. That would just lead to another polkit auth attempt.
* variuos: add missing includesZbigniew Jędrzejewski-Szmek2021-09-221-0/+2
|
* docs: improve wording when mentioning the acronym "ESP"nl67202021-07-091-1/+1
| | | | "ESP" is "EFI system partition", so "ESP partition" is redundant.
* logind: Add new flag for kexec rebootDeepak Rawat2021-03-311-3/+4
| | | | Add new flag to allow kexec reboot if kernel is already loaded.
* license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
|
* systemctl: split up humungous systemctl.c fileLennart Poettering2020-10-071-0/+248
This is just some refactoring: shifting around of code, not change in codeflow. This splits up the way too huge systemctl.c in multiple more easily digestable files. It roughly follows the rule that each family of verbs gets its own .c/.h file pair, and so do all the compat executable names we support. Plus three extra files for sysv compat (which existed before already, but I renamed slightly, to get the systemctl- prefix lik everything else), a -util file with generic stuff everything uses, and a -logind file with everything that talks directly to logind instead of PID1. systemctl is still a bit too complex for my taste, but I think this way itc omes in a more digestable bits at least. No change of behaviour, just reshuffling of some code.