summaryrefslogtreecommitdiff
path: root/src/systemctl.c
AgeCommit message (Collapse)Author
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-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
2011-07-08loginctl: add various introspection functionsLennart Poettering
2011-07-07systemctl: hide all information on --kill-mode= since it is mostly uselessLennart Poettering
2011-07-07systemctl: use cached tty value where possibleLennart Poettering
2011-07-07systemctl: cache tty value before we open the pagerLennart Poettering
2011-07-07loginctl: add basic implementation of loginctl for introspecting controlling ↵Lennart Poettering
sessions/users/seats
2011-07-07cgls: add pager support to systemd-cglsLennart Poettering
2011-07-03shutdown: respect the dry run option '-k'Michal Schmidt
Don't do the actual power-off/reboot when '-k' is passed to shutdown. Related to: https://bugzilla.redhat.com/show_bug.cgi?id=624149
2011-07-03shutdown: accept minutes argument without '+'Michal Schmidt
Both SysVinit's and upstart's shutdown commands accept the number of minutes with or without the plus sign. 'shutdown -h 1' works in RHEL 5, Fedora 14, Debian 6. Let's be compatible. https://bugzilla.redhat.com/show_bug.cgi?id=708886
2011-06-27systemctl: add support for --root for systemctl enable/disable/is-enabledFrederic Crozat
Add --root=<root> for enable/disable/is-enabled systemctl commands. To be used for easily enable / disable systemd services for a chroot, without running systemctl inside chroot.
2011-06-20systemctl: Add SYSTEMD_PAGER for setting the pager to use in systemctlVille Skyttä
2011-06-15systemctl: plug a leak upon create_symlink mismatchJim Meyering
2011-06-15systemctl: enable chkconfig support in systemctl for ALTLinuxAlexey Shabalin
2011-06-14systemctl: fix a FILE* leakMichal Schmidt
In practice it does not really matter, but let's be nice and close the file.
2011-06-14systemctl: fix 'is-enabled' for native units under /libMichal Schmidt
The units always showed up as enabled. The config file has to be parsed before we can check what's in the [Install] section. https://bugzilla.redhat.com/show_bug.cgi?id=699027
2011-06-09enable chkconfig support in systemctl for openSUSEFrederic Crozat
2011-06-05systemctl: fix double unref of a dbus messageMichal Schmidt
2011-04-28dbus: make daemon reexecution synchronousLennart Poettering
We simply keep open copies of the dbus connections across the reexecution and close them as last step of it. A client can thus simply wait until its connection is dropped to know when the reexecution is finished. https://bugzilla.redhat.com/show_bug.cgi?id=698198
2011-04-27systemctl: whitelist /etc instead of blacklisting /lib to figure out if ↵Lennart Poettering
[Install] is needed
2011-04-20MeeGo supportChris E Ferron
This commit consists of the initial work to include MeeGo as a ported distribution for systemd. The majority of the changes are small configuration additions to auto tools, so that MeeGo is identified as a valid distribution option. Some small deviations will be noticed between the configuration of MeeGo and other distributions. As MeeGo is a distribution striving for compliancy to support its near embedded attributes and target users, there is less user configuration options available by default. Most services will be enabled by systemd as part of the distribution requirements, and as such most links and service files will be pre-setup for the MeeGo distribution. As much of this is going to be done within the MeeGo distribution packaging this is still noteworthy to mention, as it explains why in systemd you will observe configuration differences where the MeeGo distribution removes all links in the pkgsysconfdir for instance. MeeGo will be user configurable if there is desire, but most services will be enabled by the distribution as designated by the MeeGo compliancy standards. Other changes are in source to add such areas as meego-release defined in utils, and hostname in hostname-setup, defining vconsole-setup, localizations and rescue additions as needed. As this is all ground work, MeeGo will continue to strive for complete compatibility.
2011-04-16systemctl: always consider unit files with no [Install] section but stored ↵Lennart Poettering
in /lib enabled
2011-04-07dbus: expose monotonic timestamps on the busLennart Poettering
2011-04-06systemctl: properly parse JobNew signalsLennart Poettering
https://bugzilla.redhat.com/show_bug.cgi?id=693274
2011-04-06systemctl: make most operations NOPs in a chrootLennart Poettering
2011-03-29systemctl: don't truncate description when using pagerLennart Poettering
https://bugs.freedesktop.org/show_bug.cgi?id=35725
2011-03-28conf-parser: fix remaining parser functions according to new prototypeLennart Poettering