summaryrefslogtreecommitdiff
path: root/src/systemctl
AgeCommit message (Collapse)Author
2013-11-18Remove duplicate includesKarel Zak
2013-11-18remove unused variablesThomas Hindoe Paaboel Andersen
2013-11-14systemctl: honor --no-legend in 'list-jobs'Mantas Mikulėnas
2013-11-12bus: rename sd_bus_send_with_reply_and_block() to sd_bus_call()Lennart Poettering
The call is one of the most important ones we expose, where we place major emphasis on. We should make sure to give it a short, memorable name.
2013-11-11systemctl: warning: ‘r’ may be used uninitialized in this functionKay Sievers
2013-11-11systemctl: avoid unitialized access when showing 0 timersZbigniew Jędrzejewski-Szmek
2013-11-11systemctl: add new "list-timers" commandLennart Poettering
2013-11-09systemctl: make sure daemon-reload returns successZbigniew Jędrzejewski-Szmek
Also change sd_bus_message_exit_container to return -ENOENT when not in a container, to make it easier to distinguish different errors.
2013-11-09systemctl: fix printing of individual propertiesZbigniew Jędrzejewski-Szmek
2013-11-08shutdown: unify handling of reboot() syscall a bitLennart Poettering
2013-11-08systemctl: properly initialize column widths for list-jobsLennart Poettering
2013-11-08systemctl: rename 'listen'Kay Sievers
src/systemctl/systemctl.c: In function ‘get_listening’: src/systemctl/systemctl.c:535:25: warning: declaration of ‘listen’ shadows a global declaration [-Wshadow] src/systemctl/systemctl.c: In function ‘list_sockets’: src/systemctl/systemctl.c:690:44: warning: declaration of ‘listen’ shadows a global declaration [-Wshadow]
2013-11-08systemctl: fix "reboot" callKay Sievers
2013-11-08systemctl: restore ability to directly connect to PID1 from systemctlLennart Poettering
2013-11-08systemctl: initialize variablesKay Sievers
2013-11-08systemctl: allow listing cgroups of containersLennart Poettering
2013-11-08systemctl: various cleanupsLennart Poettering
2013-11-08systemctl: port to libsystemd-busMarc-Antoine Perennou
2013-11-08systemctl: return r instead of always returning 0Michal Sekletar
2013-11-07systemctl: we show headers for list-units even when piped these days, hence ↵Lennart Poettering
do the same for list-jobs
2013-11-07systemctl: make LOAD column width dynamicMantas Mikulėnas
Otherwise 'not-found' overflows into the ACTIVE column.
2013-11-07Support additional argument in rebootWaLyong Cho
reboot syscall can be performed with an additional argument. In some systems this functionality can be useful to modify the mode of the next boot performed by the bootloader.
2013-11-06clients: unify how we invoke getopt_long()Lennart Poettering
Among other things this makes sure we always expose a --version command and show it in the help texts.
2013-11-01systemctl: fix typo in help textThomas Hindoe Paaboel Andersen
2013-10-27path_lookup: moved _cleanup_lookup_paths_free_ from install.c to path-lookup.hDaniel Buch
2013-10-14list: make our list macros a bit easier to use by not requring type spec on ↵Lennart Poettering
each invocation We can determine the list entry type via the typeof() gcc construct, and so we should to make the macros much shorter to use.
2013-10-13Fix write-only use of a few variablesZbigniew Jędrzejewski-Szmek
Since the invention of read-only memory, write-only memory has been considered deprecated. Where appropriate, either make use of the value, or avoid writing it, to make it clear that it is not used.
2013-10-13Never call qsort on potentially NULL arraysZbigniew Jędrzejewski-Szmek
This extends 62678ded 'efi: never call qsort on potentially NULL arrays' to all other places where qsort is used and it is not obvious that the count is non-zero.
2013-10-02systemctl: fix name mangling for sysv unitsVáclav Pavlín
2013-10-01systemctl: remove legacy upstart compatibilityCristian Rodríguez
2013-09-27systemctl: make sure set-property mangles unit namesLennart Poettering
2013-09-19systemctl: Avoid ellipsizing when piping outputDave Reisner
2013-09-17cgroup: get rid of MemorySoftLimit=Lennart Poettering
The cgroup attribute memory.soft_limit_in_bytes is unlikely to stay around in the kernel for good, so let's not expose it for now. We can readd something like it later when the kernel guys decided on a final API for this.
2013-09-12shut up gcc complaining about freeing a const variableKay Sievers
2013-09-12systemctl: process only signals for jobs we really wait forMichal Sekletar
wait_filter() callback shouldn't process JobRemove signals for arbitrary jobs. It should only deal with signals for jobs which are included in set of jobs we wait for.
2013-09-10systemctl: show BlockIODeviceWeight for unitGao feng
We can use systemctl show unitname to show the BlockIODeviceWeight of unit.
2013-09-10systemcl: add support for setting BlockIODeviceWeight for unitGao feng
This patch allows user to set up BlockIODeviceWeight for unit through systemctl. Such as systemctl set-property sshd.service BlockIODeviceWeight="/dev/sda 100"
2013-09-10systemcl: add support for setting BlockIORead/WriteBandwidth for unitGao feng
This patch allows user to set up BlockIOReadBandwidth and BlockIOWriteBandwidth for unit through systemctl. Such as systemctl set-property sshd.service BlockIOReadBandwidth="/dev/sda 100000" systemctl set-property sshd.service BlockIOWriteBandwidth="/dev/sda 200000"
2013-08-11systemctl: show hint about --full when lines don't fitZbigniew Jędrzejewski-Szmek
2013-08-09systemctl: add missing newline to --help outputLennart Poettering
2013-08-04systemd-delta: Only print colors when on a ttyDaniel Schaal
This make systemd-delta follow the behaviour of systemctl and journalctl. https://bugs.freedesktop.org/show_bug.cgi?id=67656 [zj: unify color query methods between those three programs.]
2013-07-26systemctl: rearrange --help output a bitLennart Poettering
2013-07-26systemctl: remove "load" commandLennart Poettering
"systemctl load" has always been racy since the GC could hit any time, before making use of the loaded unit. Very recent systemd will run GC immeidately after all unit state changes which has the effect that the the effect of "systemctl load" is completely gone now, so let's remove the support for it in "systemctl" for good.
2013-07-26systemctl: move set-log-level to systemd-analyzeLennart Poettering
"systemctl set-log-level" is a command for analysis and tracing hence "systemd-analyze" should be the better home for it, thus allowing us to make the overly large "systemctl" a bit smaller.
2013-07-26systemctl: move "dump" command from systemctl to systemd-analyzeLennart Poettering
It's an analysis command and its format is explicitly not covered by any stability guarantees, hence move away from systemctl and into systemd-analyze, minimizing the already large interface of systemctl a bit. This patch also adds auto-paging to the various systemd-analyze commands where that makes sense
2013-07-19man: update documentation of systemctl cgroup commandsLennart Poettering
2013-07-18systemctl: option to list units by stateMaciej Wereski
This allows to show only units with specified LOAD or SUB or ACTIVE state.
2013-07-17systemd,systemctl: export condition status and show failing conditionZbigniew Jędrzejewski-Szmek
$ systemctl --user status hoohoo hoohoo.service Loaded: loaded (/home/zbyszek/.config/systemd/user/hoohoo.service; static) Active: inactive (dead) start condition failed at Tue 2013-06-25 18:08:42 EDT; 1s ago ConditionPathExists=/tmp/hoo was not met Full information is exported over D-Bus: [(condition, trigger, negate, param, state),...] where state is one of "failed" (<0), "untested" (0), "OK" (>0). I've decided to use 0 for "untested", because it might be useful to differentiate different types of failure later on, without breaking compatibility. systemctl shows the failing condition, if there was a non-trigger failing condition, or says "none of the trigger conditions were met", because there're often many trigger conditions, and they must all fail for the condition to fail, so printing them all would consume a lot of space, and bring unnecessary attention to something that is quite low-level.
2013-07-18systemctl: also highlight a load state of "not-found" as redLennart Poettering
"not-found" is a recently added load state and was previously just a special case of "error". Since it also indicates a load error we should also highlight it red, the same way as "error" was treated before.
2013-07-12systemctl: remove unused variableLukas Nykryn