summaryrefslogtreecommitdiff
path: root/src/systemctl
AgeCommit message (Collapse)Author
2013-01-15Typo fixOleksii Shevchuk
2013-01-15systemctl: when inhibiting shutdown/suspend also check for other login sessionsLennart Poettering
2013-01-14systemctl: drop compat with really really old systemd versionsLennart Poettering
2013-01-14systemctl: be smarter when mangling snapshot namesLennart Poettering
For "systemctl snapshot" it makes no sense to complete an incomplete name with ".service" as we previously did, use ".snapshot" instead. Also, don't bother with mount units or suchlike, we know that this must be a snapshot and hence is the only sane way for completion.
2013-01-14systemctl: numerous modernizationsLennart Poettering
2013-01-14core: add bus API and systemctl commands for altering cgroup parameters ↵Lennart Poettering
during runtime
2013-01-14systemctl: honour inhibitors only when running unprivilegedLennart Poettering
2013-01-14systemctl: don't hit an assert if we try to reboot and dbus is deadLennart Poettering
https://bugzilla.redhat.com/show_bug.cgi?id=889624
2013-01-14systemctl: rework is-active and is-failed codeLennart Poettering
2013-01-11systemctl: honour inhibitors when shutting down or entering sleep stateLennart Poettering
2013-01-10dbus: duplicate Job.Cancel() as CancelJob() and Snapshot.Remove() as ↵Lennart Poettering
RemoveSnapshot() on the Manager interface For all other object mehtods there are already counterparts on the manager object, as they help us reduce round-trips. So let's complete this, and reduce complexity on the client side a bit. As a side effect this also makes "systemctl snapshot" without arguments work again.
2013-01-04build-sys: drop all distribution specfic checksLennart Poettering
Yay, we now have a completely generic systemd. No distribution specific checks anymore!
2013-01-04systemctl: enable chkconfig compat only if chkconfig is found rather than ↵Lennart Poettering
based on distro
2013-01-04systemctl: add is-failedThomas Hindoe Paaboel Andersen
Adds is-failed to join is-active and is-enabled. I grabbed this one from the todo list. Most of the functionality was already there for is-active. I just needed to make check_one_unit take the states to check for as an argument instead of the hardcoded "active" and "reloading". is-failed will return 1 if none of the units given are failed. This is different from is-active which will return 3 if none of the units given are active. It returns 3 with this comment: /* According to LSB: "program is not running" */ As that does not make sense when looking for failed units I simply chose 1 instead.
2012-12-28systemctl: switch-root - read init= from /proc/cmdlineTom Gundersen
If the path to init is not specified as an argumnt to systemctl, but init= is given on the kernel commandline, use that. This means the initrd does not need glue code to parse the kernel commandline before passing on init= to systemctl. Cc: Harald Hoyer <harald@redhat.com> Cc: Dave Reisner <dreisner@archlinux.org>
2012-12-24systemctl: don't show cgroup field for a unit if cgroup is emptyLennart Poettering
2012-12-06systemctl: verbose message on missing [Install]Michal Schmidt
People still don't understand what the message implies. We have to be more verbose (or more intelligent and detect some of the cases automatically, but that's not so easy). https://bugzilla.redhat.com/show_bug.cgi?id=884438
2012-12-03systemctl: fix typos in help textUmut Tezduyar
2012-11-23time-util: also rename FORMAT_TIMESTAMP_PRETTY → _MAXLennart Poettering
2012-11-23util: rename format_timestamp_pretty() to format_timestamp_relative() ↵Lennart Poettering
because that describes much better what it does
2012-11-16journal: recommend journalctl -x more oftenLennart Poettering
2012-11-15systemctl: add help for --type/-tZbigniew Jędrzejewski-Szmek
The list of types and load states if lengthy, so a little reminder can be sometimes useful.
2012-11-15systemctl: remove empty line in case of no unitsZbigniew Jędrzejewski-Szmek
2012-11-12enable localization for common *ctl commandsDave Reisner
2012-10-28systemctl: skip JOBS column if no jobsZbigniew Jędrzejewski-Szmek
Output is very constrained. This change saves 4 columns in the common case.
2012-10-28logind: support for hybrid sleep (i.e. suspend+hibernate at the same time)Lennart Poettering
2012-10-23systemctl: refer to systemctl -n, to not overwhelm the adminLennart Poettering
2012-10-19systemctl: fix return code in chrootChristian Hesse
If 'systemctl enable' (and friends) is run inside chroot it always exits with a bad return code. unit_file_enable() returns the number of symlink rules that were supposed to be created. So resetting r to 0 and exiting gracefully should be the correct way.
2012-10-19systemctl: modernizationLennart Poettering
2012-10-19systemctl: remove --follow optionLennart Poettering
Given that "journalctl -u" exists now there's no need to duplicate this functionality in systemctl, so let's drop this, especially given that it always felt a bit awkward to overload "-f" to both --force and --follow, and to have continues output with a status header for this. systemctl status -f avahi-daemon now becomes: journalctl -fu avahi-daemon Which is shorter and a lot less redundant.
2012-10-19util: unify usage of on_tty() in util.cLennart Poettering
2012-10-18journalctl: unify ellipsation handling between journalctl and systemctlLennart Poettering
2012-10-15systemctl: don't mangle name when it is a pathLukas Nykryn
systemctl enable, disable, ... can also accept full path and in this case we don't need to alter it. https://bugzilla.redhat.com/show_bug.cgi?id=866346
2012-10-11journal: support epxorting the journal in a format suitable for ↵Lennart Poettering
text/event-stream
2012-10-04systemctl: colorize number of units listedZbigniew Jędrzejewski-Szmek
2012-10-04systemctl: do not print header if no units listedZbigniew Jędrzejewski-Szmek
2012-10-02selinux: rework selinux access check logicLennart Poettering
a) Instead of parsing the bus messages inside of selinux-access.c simply pass everything pre-parsed in the functions b) implement the access checking with a macro that resolves to nothing on non-selinux builds c) split out the selinux checks into their own sources selinux-util.[ch] d) this unifies the job creation code behind the D-Bus calls Manager.StartUnit() and Unit.Start().
2012-09-28logs-show: various cleanupsLennart Poettering
Among other cleanups this introduces a threshold for the size of binary blobs we serialize as integer arrays in the JSON output. THis can be disabled via --all.
2012-09-19systemctl: warn about triggering units only at the endZbigniew Jędrzejewski-Szmek
Instead of checking each unit separately, check once at the end. This should avoid spurious warnings about a service being triggerable by other stuff.
2012-09-19systemctl: properly report successZbigniew Jędrzejewski-Szmek
Systemctl would always return 1, because it treated uninteresting dbus messages ("job added") as errors. Just ignore everything apart from interesting ("job removed") messages.
2012-09-19systemctl: use automatic cleanup once moreZbigniew Jędrzejewski-Szmek
Semantics are slightly different, because before unit_name_mangle returning NULL was ignored, and now it is reported as oom. But unit_name_mangle only returns NULL on oom.
2012-09-19systemctl: use automatic cleanupZbigniew Jędrzejewski-Szmek
Introduce a helper method to unref dbus messages and use it.
2012-09-18core: move ManagerRunningAs to sharedZbigniew Jędrzejewski-Szmek
Note: I did s/MANAGER/SYSTEMD/ everywhere, even though it makes the patch quite verbose. Nevertheless, keeping MANAGER prefix in some places, and SYSTEMD prefix in others would just lead to confusion down the road. Better to rip off the band-aid now.
2012-09-14systemctl: show unit name when a job failsLennart Poettering
https://bugzilla.redhat.com/show_bug.cgi?id=845028 https://bugzilla.redhat.com/show_bug.cgi?id=846483
2012-09-13systemctl: minor coding style fixesLennart Poettering
2012-09-13install: append .service when enable/disable... is calledVáclav Pavlín
https://bugzilla.redhat.com/show_bug.cgi?id=856975
2012-09-12systemctl: direct the user to list-unit-files from the list-units outputLennart Poettering
2012-09-11when determining unit file list, include invalid unit names in an "invalid" ↵Lennart Poettering
state
2012-09-05systemctl: properly build flags for show_journal_by_unit()Lennart Poettering
2012-09-05shutdown: remove explicit sync() invocationsLennart Poettering
The kernel implicitly does sync() anyway, hence there is no need to do that in userspace explicitly. This makes the "-n" switch to halt(8) a noop.