From 1a0fce458d3b45624c5817006735d59a5689ef83 Mon Sep 17 00:00:00 2001 From: Thomas Hindoe Paaboel Andersen Date: Thu, 27 Dec 2012 17:39:48 +0100 Subject: 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. --- TODO | 2 -- 1 file changed, 2 deletions(-) (limited to 'TODO') diff --git a/TODO b/TODO index 6cc673eb27..8ebb951c21 100644 --- a/TODO +++ b/TODO @@ -47,8 +47,6 @@ Features: * Add a verbose mode to "systemctl start" and friends that explains what is being done or not done -* "systemctl is-failed" to join "systemctl is-active" and "systemctl is-enabled". - * journal is not closed properly at shutdown when run in a container? * All log messages generated from socket.c, service.c, ... should -- cgit v1.2.3-54-g00ecf