From 9966a902ab375128e128edc4ca85676656b759db Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 24 Apr 2009 10:17:53 +0000 Subject: rc-status -c now lists services that have crashed. It returns 0 if there are crashed services, otherwise 1. This it easy to restart crashed services automatically. More for #120. --- man/rc-status.8 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'man') diff --git a/man/rc-status.8 b/man/rc-status.8 index 8ffcec2..72f2aac 100644 --- a/man/rc-status.8 +++ b/man/rc-status.8 @@ -1,4 +1,4 @@ -.\" Copyright 2007-2008 Roy Marples +.\" Copyright 2007-2009 Roy Marples .\" All rights reserved .\" .\" Redistribution and use in source and binary forms, with or without @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd Arp 9, 2008 +.Dd April 24, 2008 .Dt RC-STATUS 8 SMM .Os OpenRC .Sh NAME @@ -30,7 +30,7 @@ .Nd show status info about runlevels .Sh SYNOPSIS .Nm -.Op Fl alsuC +.Op Fl aclsuC .Op Ar runlevel .Sh DESCRIPTION .Nm @@ -43,6 +43,8 @@ The options are as follows: .Bl -tag -width ".Fl test , test string" .It Fl a , -all Show all runlevels and their services. +.It Fl c , -crashed +List all services that have crashed. .It Fl l , -list List all defined runlevels. .It fl r , -runlevel @@ -57,6 +59,9 @@ Disable color output. Show information only for the named .Ar runlevel . .El +.Sh EXIT STATUS +.Nm +exits 0, except when checking for crashed services and it doesn't find any. .Sh SEE ALSO .Xr rc 8 , .Xr rc-update 8 -- cgit v1.2.3