From 16e428b36f891b08fbf33d62a63c56711217990c Mon Sep 17 00:00:00 2001 From: Petar Kapris Date: Thu, 10 Dec 2020 15:55:14 +0100 Subject: [PATCH] Add exit statuses to new manpage section --- timeoutd.8 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/timeoutd.8 b/timeoutd.8 index a38a29b..47a86cf 100644 --- a/timeoutd.8 +++ b/timeoutd.8 @@ -54,7 +54,15 @@ to login at that time, or whether they have exceeded their daily time limit. When invoked in this way, by passing a username and tty (without the leading /dev) on the command line, .B timeoutd -returns one of the following exit codes: +returns an exit code and may leave an appropriate message. +.SH EXIT STATUS +When run in daemon mode, +.B timeoutd +may exit with an exit status of 1, in case of fatal error, or 0, if it has been +terminated by another process. +.PP +When invoked as a normal command, it will exit +with one of the following exit codes: .IP "0 User is allowed to login .IP "1 Fatal error .IP "5 Incorrect command line format