summaryrefslogtreecommitdiff
path: root/src/systemctl
AgeCommit message (Collapse)Author
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.
2012-06-14systemctl: clearer error message for missing install informationMichal Schmidt
Some users found it difficult to understand what systemctl was telling them. Instead of "install information" talk about "[Install] section", which is more likely to ring a bell. And suggest that it is intentional, so that users do not attempt to "correct" the unit files. https://bugzilla.redhat.com/show_bug.cgi?id=817033
2012-06-13unit-name: introduce unit_dbus_path_from_name()Michal Schmidt
Use the same function in core and in systemctl. get_unit_path() in systemctl becomes unnecessary.
2012-06-13systemctl: warn about all active triggers, not just socketsMichal Schmidt
2012-06-13systemctl: fix iteration in check_listening_sockets()Michal Schmidt
2012-06-13systemctl: remove is_socket_listeningMichal Schmidt
We can use the functionality of check_unit(). Factor out check_one_unit().
2012-06-13systemctl: style fixes for the previous patchMichal Schmidt
Use the usual indentation, bracketing style, and no assignments in ifs. Since check_listening_sockets provides just optional hints for the user, don't pass its DBusErrors to the caller.
2012-06-13systemctl will print warning when stopping unitMichal Sekletar
systemctl now prints warning and list of sockets in listenning state which can trigger start of service which is about to be stopped
2012-06-04systemctl: rename "man" to "help"Kay Sievers
2012-05-31systemctl: introduce "systemctl man" to show man page for unitLennart Poettering
For now this only reads man: URLs, but later on we might want to support info: too. http/https is probably out of focus.
2012-05-30build-sys: fix built with --disable-logindLennart Poettering
2012-05-23manager: rework generator logicLennart Poettering
Previously generated units were always placed at the end of the search path. With this change there will be three unit dirs instead of one, to place generated entries at the beginning, in the middle and at the end of the search path: beginning: for units that need to override all configuration, regardless of user or vendor. Example use: system-update-generator uses this to temporarily redirect default.target. middle: for units that need to override vendor configuration, but not vendor configuration. Example use: /etc/fstab should override vendor supplied configuration (think /tmp), but should not override native user configuration. end: does not override anything but is available as well. Possible usage might be to convert D-Bus bus service files to native units but allowing vendor supplied native units to win.
2012-05-22units: remove service sysv_path variable and replace it by generic unit_pathLennart Poettering
UnitPath= is also writable via native units and may be used by generators to clarify from which file a unit is generated. This patch also hooks up the cryptsetup and fstab generators to set UnitPath= accordingly.
2012-05-21delta: fix spelling of overriddenNis Martensen
2012-05-21units: introduce new Documentation= field and make use of it everywhereLennart Poettering
This should help making the boot process a bit easier to explore and understand for the administrator. The simple idea is that "systemctl status" now shows a link to documentation alongside the other status and decriptionary information of a service. This patch adds the necessary fields to all our shipped units if we have proper documentation for them.
2012-05-21systemctl: drop useless DBus calls from 'systemctl show foo.service'Michal Schmidt
systemctl called LoadUnit, GetUnit, GetAll in this order to get the properties. It is useless to load units explicitly, because it won't ensure anything. The unit may be freed immediately by the garbage collector. It is unnecessary to call GetUnit, because systemctl can easily translate the unit name to DBus path by itself. GetAll will load the unit if necessary.
2012-05-14systemctl: add switch-root verbLennart Poettering
2012-05-08logind: implement suspend/hibernate calls with inhibition logicLennart Poettering
2012-05-08sleep: implement suspend/hibernate as first class targetsLennart Poettering
2012-05-08util: split-out path-util.[ch]Kay Sievers
2012-05-04systemctl: fix typoLennart Poettering
as Sergey Ptashnick pointed out we should write "poweroff" once instead of "reboot" twice.
2012-05-03dbus: include unit name in JobNew/JobRemoved signalsLennart Poettering
This breaks D-Bus interface slightly, but since the D-Bus API isn't covered by the interface stability promise this should be OK.
2012-05-03systemctl: allow 'systemctl reboot -ff' to succeed even without D-BusLennart Poettering
2012-05-03systemctl: print a nice error message if an unprivileged user calls ↵Lennart Poettering
systemctl reboot -ff
2012-05-03systemctl: get rid of arg_immediate and fold it into arg_forceLennart Poettering
2012-04-16systemctl: show main and control PID explicitly in cgroup-showLennart Poettering
In some cases the main/control PID of a service can be outside of the services cgroups (for example, if logind readjusts the processes' cgroup). In order to clarify this for the user show the main/control PID in the cgroup tree nonetheless, but mark them specially.
2012-04-16cgls: don't show empty cgroups by defaultLennart Poettering
2012-04-13build-sys: add stub makefiles to all subdirs to ease development with emacsLennart Poettering
2012-04-12move all tools to subdirsKay Sievers