summaryrefslogtreecommitdiff
path: root/src/systemctl.c
AgeCommit message (Collapse)Author
2012-04-12relicense to LGPLv2.1 (with exceptions)Lennart Poettering
We finally got the OK from all contributors with non-trivial commits to relicense systemd from GPL2+ to LGPL2.1+. Some udev bits continue to be GPL2+ for now, but we are looking into relicensing them too, to allow free copy/paste of all code within systemd. The bits that used to be MIT continue to be MIT. The big benefit of the relicensing is that closed source code may now link against libsystemd-login.so and friends.
2012-04-11polkit: temporarily spawn of a polkit agent in terminals for possibly ↵Lennart Poettering
authenticated operations
2012-04-11shutdownd: rework interface, allow subscribing to scheduled shutdownsLennart Poettering
This extends the shutdownd interface to expose schedule shutdown information in /run/systemd/shutdown/schedule. This also cleans up the shutdownd protocol and documents it in a header file sd-shutdown.h. This is supposed to be used by client code that wants to control and monitor scheduled shutdown.
2012-04-11systemctl: don't forward poweroff/reboot requests to logind if time is set ↵Lennart Poettering
or immediate or dry-run execution is requested logind can't handle scheduled poweroff/reboot requests, nor immediate/dry-run requests, hence don't attempt forwarding to logind if these options are used.
2012-04-03systemctl: make -f short for both --follow and --forceLennart Poettering
2012-03-15a couple of fixes to make llvm-analyze quietLennart Poettering
2012-02-29systemctl: forward untrusted user reboot, poweroff requests to logindKay Sievers
2012-02-15systemctl: introduce systemctl reboot -ffLennart Poettering
2012-02-09systemctl: check for no more work after chkconfigMichal Schmidt
Avoid a bogus message from 'systemctl enable ...' when all units given are SysV services: Warning: unit files do not carry install information. No operation executed. https://bugzilla.redhat.com/show_bug.cgi?id=787407
2012-02-03service: replace "failure" boolean by enum, and export itLennart Poettering
This should give admins more useful hints why a service failed.
2012-01-22cgls: don't show kernel threads by defaultLennart Poettering
2012-01-21systemctl: don't show ln -s/rm output in 'install' mode if --quiet is passedLennart Poettering
2012-01-14util: rework ANSI escape code macrosLennart Poettering
2012-01-13journal: add output mode that just prints simple messages without any ↵Lennart Poettering
decorations
2012-01-07journalctl: add new short-monotonic output modeLennart Poettering
2012-01-05build-sys: move public header files into a dir of their ownLennart Poettering
2012-01-04journal: beef up journal output of systemctl and journalctlLennart Poettering
2012-01-04journalctl: fix counting of -n parameterLennart Poettering
2012-01-03systemctl: hook up systemctl with the journalLennart Poettering
2011-12-31Merge branch 'journal'Lennart Poettering
2011-12-15systemctl: fix typo in 'is-enabled'Michal Schmidt
It prevented the action from working without dbus.
2011-12-06systemctl: print 'error' load state in redMichal Schmidt
Be consistent in coloring of load states in list-units and status. Print only 'error' in red. There are no 'banned' or 'failed' states. Do not color 'masked', it's not an error.
2011-12-05Allow 'list-unit-files' to run with --root.Bill Nottingham
To do so, move the check for the bus to the bus-using portion of list_unit_files(), and ensure that get_config_path doesn't abort when checking the runtime path with --root.
2011-11-08Merge branch 'master' into journalLennart Poettering
2011-11-07utmp: remove unneded parametersMichal Schmidt
With these functions no caller ever passes anything else than 0 for 't' (meaning the current time will be used).
2011-11-02Add Mageia supportDexter Morgan
This patch adds support for the Mageia Linux distribution: http://www.mageia.org/ Mageia is a fork of Mandriva although some divergence has already occured and thus inclusion of these changes upstream allow us to (hopefully) migrate more rapidly to the new standard approaches systemd offers. Indeed, we already use the preferred mechanism of OS identification via the /etc/os-release file rather than a distro specific variation. This patch mostly mirrors the patch added previously for Mandriva support. In addition to those original authors, this patch was mostly written by Dexter Morgan with help from Colin Guthrie and Eugeni Dodonov.
2011-10-24systemctl: make list-unit-files output more economicalZbigniew Jędrzejewski-Szmek
The first column is given the width of the widest entry, if possible, otherwise all entries are ellipsized to fit in ($COLUMNS - (width of second column)). [ Added a few fixes, calculate state_cols too, respect '--no-legend', better handling of '--full' -- michich ]
2011-10-07journal: add preliminary incomplete implementationLennart Poettering
2011-09-29systemctl: fix corrupted output of unitsMichal Schmidt
On some systems the list of units in systemctl output came out wrong, all on one line and with missing descriptions. It turns out printf() really attempts to mmap 2G memory when INT_MAX is passed as the field width. On machines with small virtual memory without overcommit the mmap inside printf() failed. Do not use INT_MAX for unlimited width.
2011-09-29systemctl: fix error message when no connection to systemd is availableLennart Poettering
2011-09-29systemctl: fix detection whether the dbus connection is availableLennart Poettering
2011-09-27systemctl: better width and alignment of fieldsMichal Schmidt
Provide nicer output by taking advantage of the available columns. Expand UNIT and DESCRIPTION if possible. Economize the space: - never give UNIT more width than it can use. - if there's a shortage of space, give 25 columns to UNIT, even if it would result in overflowing the total columns. The field would not be useful below width 25. - then if possible, assign up to 25 columns to DESCRIPTION. - then split any remaining space evenly between UNIT and DESCRIPTION. Keep the columns aligned even with '--full'.
2011-09-27systemctl: print the legend regardless of stdout type, add --no-legendMichal Schmidt
Print the legend (the column headers and the footer with hints) by default even to non-tty output. People seem to get confused by the difference when they redirect the output. Add a parameter to suppress the printing of the legend. Related-to: https://bugzilla.redhat.com/show_bug.cgi?id=713567
2011-09-23llvm-analyze: change a few things to make llvm-analyze show fewer false ↵Lennart Poettering
positives
2011-09-23coverity: change a few things so that coverity doesn't show so many false ↵Lennart Poettering
positives
2011-09-23coverity: fix a couple of bugs found by coverityLennart Poettering
2011-08-31systemctl: if we managed to reexec the init system via the bus don't retry ↵Lennart Poettering
via signal If we managed to reeexec the init system via the bus this allows us to provide synchronous behaviour to callers. This is all lost if we then repeat the reexecution via SIGTERM. https://bugzilla.redhat.com/show_bug.cgi?id=698198
2011-08-24initctl: check for kexec_loaded when reboot is requested through initctlFrederic Crozat
2011-08-21cgroup: expose cgroup attributes as unit properties on the busLennart Poettering
2011-07-31systemctl: fix parsing of LoadError property for systemctl showLennart Poettering
2011-07-31dbus: export unit file stateLennart Poettering
2011-07-31dbus: export load error on unit objectsLennart Poettering
2011-07-30systemctl: s/ignore/ignore_error/ in 'show' outputLennart Poettering
2011-07-25systemctl: hook up new install logicLennart Poettering
This adds a number of new options to systemctl, for presets, reenabling, masking/unmask, and runtime operations.
2011-07-23systemctl: remove monitor command since it is mostly uselessLennart Poettering
2011-07-23systemctl: split --help into multiple sectionsLennart Poettering
2011-07-22systemctl: fix indentingLennart Poettering
2011-07-22path-lookup: make inclusion of user private units optionalLennart Poettering
2011-07-14systemctl: don't try rebooting with /dev/initcl if Upstart workedLennart Poettering
2011-07-08systemctl: fix --help syntax for variablesLennart Poettering