Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-12-27 | systemctl: remove unused variable | Thomas Hindoe Paaboel Andersen | |
2013-12-26 | Use enums to make it obvious what boolean params mean | Zbigniew Jędrzejewski-Szmek | |
Suggested-by: Russ Allbery <rra@debian.org> | |||
2013-12-26 | systemctl: allow globbing in commands which take multiple unit names | Zbigniew Jędrzejewski-Szmek | |
2013-12-26 | systemctl: drop uninteresting units immediately | Zbigniew Jędrzejewski-Szmek | |
Also properly free memory if list-unit-files --root=... is used. | |||
2013-12-26 | systemctl: simplify start_unit | Zbigniew Jędrzejewski-Szmek | |
2013-12-22 | systemctl: also color filenames of drop-ins in cat | Zbigniew Jędrzejewski-Szmek | |
2013-12-21 | systemctl: fix bad memory access when processing PIDs on the "systemctl ↵ | Lennart Poettering | |
status" command line | |||
2013-12-18 | systemct: add empty line between units in cat | Zbigniew Jędrzejewski-Szmek | |
2013-12-16 | systemctl: highlight filenames in cat | Zbigniew Jędrzejewski-Szmek | |
2013-12-16 | systemctl: fix return value from cat | Zbigniew Jędrzejewski-Szmek | |
2013-12-16 | systemctl: properly initialize and free sd_bus_error in "systemctl cat" | Lennart Poettering | |
We need to properly initialize all error structs before use and free them after use. Also, there's no point in flushing stdout if we output a \n anyway... | |||
2013-12-14 | systemctl: add the --plain option to the help message | Djalal Harouni | |
2013-12-08 | systemctl: fix 'is-enabled' | Zbigniew Jędrzejewski-Szmek | |
2013-12-08 | systemctl: simplify argument parsing | Zbigniew Jędrzejewski-Szmek | |
2013-12-08 | Help output spring cleaning | Zbigniew Jędrzejewski-Szmek | |
Use [brackets] only for optional elements. Use <optional> in XML sources. | |||
2013-12-07 | systemctl: fix and refactor wait_for_jobs | Thomas Hindoe Paaboel Andersen | |
wait_for_jobs was ignoring the errors from the jobs stored in r. It would only ever return whether the call to sd_bus_remove_filter went ok. This patch changes it to return the first job related error encountered. If a job related error is found, then the result of the call to sd_bus_remove_filter is ignored. wait_for_jobs was a bit hard to read so I split it up to avoid the goto and deep nesting. | |||
2013-12-06 | systemctl: allow globbing in list-<whatever> commands | Zbigniew Jędrzejewski-Szmek | |
It is nicer to say 'systemctl list-units ssh\*' then to use grep, because colouring is preserved and it is easier to match just against the unit name. | |||
2013-12-06 | Get rid of our reimplementation of basename | Zbigniew Jędrzejewski-Szmek | |
The only problem is that libgen.h #defines basename to point to it's own broken implementation instead of the GNU one. This can be fixed by #undefining basename. | |||
2013-12-06 | systemctl: check the value from start_unit_one | Thomas Hindoe Paaboel Andersen | |
introduced in f459b6025f9368116d8c410376546c157314c205 | |||
2013-12-04 | systemctl: make an always true assert static | Thomas Hindoe Paaboel Andersen | |
Silences a warning i clang | |||
2013-12-04 | systemctl: no need to fdopen stdout | Thomas Hindoe Paaboel Andersen | |
2013-12-03 | trivial coding style clean ups | Thomas Hindoe Paaboel Andersen | |
- Add space between if/for and the opening parentheses - Place the opening brace on same line as the function (not for udev) From the CODING_STYLE Try to use this: void foo() { } instead of this: void foo() { } | |||
2013-11-30 | systemctl: do not show SourcePath when FragmentPath cannot be found | Zbigniew Jędrzejewski-Szmek | |
Those files can be in a completely deferent format and also arbitrarily long, and usually contain information about other stuff. If we ever add SourceLine= or SourceLines= in addition to SourcePath=, and can show the relevant information only, this commit can be reverted. | |||
2013-11-30 | systemctl: add "systemctl cat" | Shawn Landden | |
2013-11-30 | systemctl: refactor show() | Shawn Landden | |
v2, don't leave in unused function | |||
2013-11-26 | systemctl: fix enable/disable reply handling | Kay Sievers | |
2013-11-26 | systemctl: replace the three job mode options by a single --job-mode= option | Lennart Poettering | |
Also, expose the new "flush" job mode this way. | |||
2013-11-25 | systemctl: remove debug log message | Lennart Poettering | |
2013-11-25 | systemctl: when status is called without arguments show pager | Lennart Poettering | |
2013-11-22 | systemctl: indicate in list-dependencies whether a unit is already running | Lennart Poettering | |
2013-11-21 | bus: rework message handlers to always take an error argument | Lennart Poettering | |
Message handler callbacks can be simplified drastically if the dispatcher automatically replies to method calls if errors are returned. Thus: add an sd_bus_error argument to all message handlers. When we dispatch a message handler and it returns negative or a set sd_bus_error we send this as message error back to the client. This means errors returned by handlers by default are given back to clients instead of rippling all the way up to the event loop, which is desirable to make things robust. As a side-effect we can now easily turn the SELinux checks into normal function calls, since the method call dispatcher will generate the right error replies automatically now. Also, make sure we always pass the error structure to all property and method handlers as last argument to follow the usual style of passing variables for return values as last argument. | |||
2013-11-20 | core: convert PID 1 to libsystemd-bus | Lennart Poettering | |
This patch converts PID 1 to libsystemd-bus and thus drops the dependency on libdbus. The only remaining code using libdbus is a test case that validates our bus marshalling against libdbus' marshalling, and this dependency can be turned off. This patch also adds a couple of things to libsystem-bus, that are necessary to make the port work: - Synthesizing of "Disconnected" messages when bus connections are severed. - Support for attaching multiple vtables for the same interface on the same path. This patch also fixes the SetDefaultTarget() and GetDefaultTarget() bus calls which used an inappropriate signature. As a side effect we will now generate PropertiesChanged messages which carry property contents, rather than just invalidation information. | |||
2013-11-18 | Remove duplicate includes | Karel Zak | |
2013-11-18 | remove unused variables | Thomas Hindoe Paaboel Andersen | |
2013-11-14 | systemctl: honor --no-legend in 'list-jobs' | Mantas Mikulėnas | |
2013-11-12 | bus: 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-11 | systemctl: warning: ‘r’ may be used uninitialized in this function | Kay Sievers | |
2013-11-11 | systemctl: avoid unitialized access when showing 0 timers | Zbigniew Jędrzejewski-Szmek | |
2013-11-11 | systemctl: add new "list-timers" command | Lennart Poettering | |
2013-11-09 | systemctl: make sure daemon-reload returns success | Zbigniew 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-09 | systemctl: fix printing of individual properties | Zbigniew Jędrzejewski-Szmek | |
2013-11-08 | shutdown: unify handling of reboot() syscall a bit | Lennart Poettering | |
2013-11-08 | systemctl: properly initialize column widths for list-jobs | Lennart Poettering | |
2013-11-08 | systemctl: 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-08 | systemctl: fix "reboot" call | Kay Sievers | |
2013-11-08 | systemctl: restore ability to directly connect to PID1 from systemctl | Lennart Poettering | |
2013-11-08 | systemctl: initialize variables | Kay Sievers | |
2013-11-08 | systemctl: allow listing cgroups of containers | Lennart Poettering | |
2013-11-08 | systemctl: various cleanups | Lennart Poettering | |
2013-11-08 | systemctl: port to libsystemd-bus | Marc-Antoine Perennou | |