Systemd/src
Thomas Hindoe Paaboel Andersen 1a0fce458d systemctl: add is-failed
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.
2013-01-04 00:33:25 +01:00
..
ac-power unit: add ConditionACPower= 2012-12-31 21:24:26 +01:00
analyze analyze: properly parse firmware/loader time and handle times for container boots correctly 2012-12-31 21:24:26 +01:00
ask-password build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
binfmt continue work with error messages, log_oom() 2012-08-06 16:37:01 +02:00
cgls cgls: automatic cleanup 2012-12-01 16:38:32 +01:00
cgroups-agent build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
cgtop util: unify line caching and column caching 2012-10-19 00:07:55 +02:00
core unit: add ConditionACPower= 2012-12-31 21:24:26 +01:00
cryptsetup cryptsetup-generator: state file name in error messages 2012-11-23 14:19:30 +01:00
delta delta.c: fix option '-t' 2012-11-14 00:18:02 +01:00
detect-virt systemd-detect-virt: fix "option '--quiet' requires an argument" 2012-06-04 12:39:22 +02:00
fsck log.h: new log_oom() -> int -ENOMEM, use it 2012-07-26 11:48:26 +02:00
fstab-generator fstab-generator: fix typo 2012-12-29 00:21:28 +01:00
getty-generator getty-generator: fix handling systems without a console 2012-12-02 18:18:27 +01:00
gudev licence: remove references to old FSF address 2012-12-17 11:41:31 +01:00
hostname polkit: add "imply" rules to a number of polkit actions 2012-12-31 21:24:26 +01:00
initctl build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
journal coredumpctl: check return of strndup 2012-12-19 15:27:44 +01:00
libsystemd-daemon sd-daemon: fix cppcheck warnings 2012-12-17 11:41:31 +01:00
libsystemd-id128 update .gitignore 2012-04-13 21:58:01 +02:00
libudev udev: in addition to DEVMODE, honor DEVUID, DEVGID from the uevent 2012-12-31 04:48:44 +01:00
locale localed: create /etc/X11/xorg.conf.d if needed 2013-01-04 00:26:27 +01:00
login polkit: add "imply" rules to a number of polkit actions 2012-12-31 21:24:26 +01:00
machine-id-setup log: correct usage of logging API at a few places 2012-07-13 15:45:45 +02:00
modules-load modules-load: fix memory leak when bailing out 2012-12-04 14:03:40 +01:00
notify build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
nspawn nspawn: try to orderly shutdown container when receiving SIGTERM 2012-12-22 22:17:58 +01:00
python-systemd python: add journal backend for the logging framework 2012-11-13 11:13:52 +01:00
quotacheck cryptsetup: allow configuration of LUKS disks via the kernel cmdline 2012-06-22 10:11:06 +02:00
random-seed random-seed: fix error message typo 2012-10-19 17:31:33 +02:00
rc-local-generator log.h: new log_oom() -> int -ENOMEM, use it 2012-07-26 11:48:26 +02:00
readahead readahead: don't complain that we cannot precache symlinks 2013-01-03 22:37:38 +01:00
remount-fs service: add options RestartPreventExitStatus and SuccessExitStatus 2012-08-14 14:46:03 +02:00
reply-password build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
shared unit: add ConditionACPower= 2012-12-31 21:24:26 +01:00
shutdownd shutdown: allow to specify broadcast message when cancelling shutdown 2012-08-06 16:25:55 +02:00
sleep logind: support for hybrid sleep (i.e. suspend+hibernate at the same time) 2012-10-28 00:50:35 +02:00
stdio-bridge build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
sysctl sysctl: parse all keys in a config file 2012-10-26 01:12:22 +02:00
system-update-generator log.h: new log_oom() -> int -ENOMEM, use it 2012-07-26 11:48:26 +02:00
systemctl systemctl: add is-failed 2013-01-04 00:33:25 +01:00
systemd core: add catalog entry and MESSAGE_ID for overmounting 2012-12-05 12:25:50 +01:00
test journalctl: strip TABs and ANSI color sequences from log messages when displaying them 2012-12-23 11:28:14 +01:00
timedate polkit: add "imply" rules to a number of polkit actions 2012-12-31 21:24:26 +01:00
timestamp build-sys: add stub makefiles to all subdirs to ease development with emacs 2012-04-13 21:37:59 +02:00
tmpfiles tmpfiles: Fix file descriptor leak on error 2013-01-03 22:42:55 +01:00
tty-ask-password-agent log.h: new log_oom() -> int -ENOMEM, use it 2012-07-26 11:48:26 +02:00
udev udev: in addition to DEVMODE, honor DEVUID, DEVGID from the uevent 2012-12-31 04:48:44 +01:00
update-utmp utmp: read the right timestamp 2012-09-17 17:48:19 +02:00
vconsole drop Arch Linux support for reading /etc/rc.conf 2012-11-03 19:59:42 -04:00
.gitignore move libsystemd-id128, libsystemd-daemon to subdir 2012-04-12 15:26:39 +02:00
Makefile relicense to LGPLv2.1 (with exceptions) 2012-04-12 00:24:39 +02:00