summaryrefslogtreecommitdiff
path: root/src/systemctl/systemctl.c
AgeCommit message (Collapse)Author
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.
2012-09-05journalctl: rework JSON output modeLennart Poettering
This splits the JSON output mode into different modes: json and json-pretty. The former printing one entry per line, the latter showing JSON objects nicely indented and in multiple lines to make it easier to read for humans.
2012-08-14service: add options RestartPreventExitStatus and SuccessExitStatusLukas Nykryn
In some cases, like wrong configuration, restarting after error does not help, so administrator can specify statuses by RestartPreventExitStatus which will not cause restart of a service. Sometimes you have non-standart exit status, so this can be specified by SuccessfulExitStatus.
2012-08-10systemctl: fix issue with systemctl daemon-reexecSimon Peeters
2012-08-08move bus_method_call_with_reply() to dbus-commonSimon Peeters
2012-08-08systemctl: use bus_method_call_with_reply() where posibleSimon Peeters
use the method introduced by the previous commit
2012-08-08systemctl: add bus_method_call_with_replySimon Peeters
this method combines the folowing dbus calls and there error handling: dbus_message_new_method_call() dbus_message_append_args() dbus_connection_send_with_reply_and_block()
2012-08-06shutdown: allow to specify broadcast message when cancelling shutdownMichal Sekletar
makes shutdown behaviour more compatible
2012-07-26journalctl: hightlight log lines by priorityLennart Poettering
warn/notice = bright white < error = red
2012-07-26log.h: new log_oom() -> int -ENOMEM, use itShawn Landden
also a number of minor fixups and bug fixes: spelling, oom errors that didn't print errors, not properly forwarding error codes, few more consistency issues, et cetera
2012-07-25use "Out of memory." consistantly (or with "\n")Shawn Landden
glibc/glib both use "out of memory" consistantly so maybe we should consider that instead of this. Eliminates one string out of a number of binaries. Also fixes extra newline in udev/scsi_id
2012-07-23systemctl: use color specification understood by dotZbigniew Jędrzejewski-Szmek
grey66 is aproximately equal to dark grey. Not understanding dark grey is really a bug in dot, but trivial to work around. Closes https://bugs.freedesktop.org/show_bug.cgi?id=45706
2012-07-22collect, keymap, systemctl: use _noreturn_Zbigniew Jędrzejewski-Szmek
2012-07-20core: drop KillMode parameter from KillUnit() bus callLennart Poettering
It made no sense, and since we are documenting the bus calls now and want to include them in our stability promise we really should get it cleaned up sooner, not later.
2012-07-17logs: Adapt interface in log-show.c (show_journal_by_unit)Zbigniew Jędrzejewski-Szmek
Convert more flag arguments into one flag variable.
2012-07-10systemctl: filter shown units by their load stateZbigniew Jędrzejewski-Szmek
E.g. systemctl --all -t masked gives the list of masked units. The -t/--type option is reused. This is possible because unit types and unit load states are called differently, so it is possible to distinguish what the user meant. Using the same option also means that the interface is user for the user: less options to remember.
2012-07-10systemctl: check the argument to -t for invalid valuesZbigniew Jędrzejewski-Szmek
Systemctl accepted anything as the argument for -t, and simply said '0 units found'. It is better to catch this user error early.
2012-07-09MeeGo: Remove build support for MeeGo distribution.Auke Kok
The MeeGo distribution is still a supported distribution, but will probably not see an updated version of systemd anymore. Most of the development is focussing on Tizen now, and the generic support for building --with-distro=other is more than adequate enough. This patch removes the support as a custom configuration build target in systemd. People who are still building this for the MeeGo distribution should build as "other" distro.
2012-06-25systemctl: make sure we print URLs we can't show in systemctl in a nicely ↵Lennart Poettering
clickable way
2012-06-22systemctl: automatically turn paths and unescaped unit names into proper ↵Lennart Poettering
unit names This makes sure that systemctl status /home is implicitly translated to: systemctl status /home.mount Similar, /dev/foobar becomes dev-foobar.device. Also, all characters that cannot be part of a unit name are implicitly escaped.
2012-06-17journal: expose and make use of cutoff times of journalLennart Poettering
This helps explaining when the log output of "systemctl status" is incomplete because the logs got rotated since the service was started.