[prev in list] [next in list] [prev in thread] [next in thread] 

List:       smartmontools-support
Subject:    [smartmontools-support]Man page bug
From:       Ed Grimm <fixer () gentoo ! evolution ! tgape ! org>
Date:       2004-10-16 22:26:53
Message-ID: Pine.LNX.4.58.0410161715090.21079 () ybec ! rq ! iarg
[Download RAW message or body]

The smartd doesn't know its signals; INT is generated by Control-C, not
QUIT; QUIT's generated by Control-\ (except, of course, under Cygwin,
where one presses control-C twice, and Windows, where it's
Control-Break.)

I've attached a patch.

Ed
["manpage.patch" (TEXT/PLAIN)]

--- smartd.8.in.bak	2004-10-15 15:02:54.000000000 +0000
+++ smartd.8.in	2004-10-16 22:16:54.014391880 +0000
@@ -78,11 +78,12 @@
 the contents of the (faulty) configuration file, as if the \fBHUP\fP
 signal had never been received.
 
-When \fBsmartd\fP is running in debug mode, the \fBQUIT\fP signal
+When \fBsmartd\fP is running in debug mode, the \fBINT\fP signal
 (normally generated from a shell with CONTROL\-C) is treated in the
 same way as a \fBHUP\fP signal: it makes \fBsmartd\fP reload its
-configuration file. To exit \fBsmartd\fP use CONTROL-\e
-(Cygwin: 2x CONTROL\-C, Windows: CONTROL\-Break).
+configuration file. The \fBQUIT\fP signal exits (normally generated from
+a shell with CONTROL-\e, except under Cygwin, one issues two CONTROL\-C
+keystrokes, and in Windows, it's CONTROL\-Break).
 
 On startup, in the absence of the configuration file
 \fB/usr/local/etc/smartd.conf\fP, the \fBsmartd\fP daemon first scans for all
@@ -142,9 +143,9 @@
 \fBfork(2)\fP into the background and detach from the controlling
 terminal.  In this mode, \fBsmartd\fP also prints more verbose
 information about what it is doing than when operating in "daemon"
-mode. In this mode, the \fBQUIT\fP signal (normally generated from a
+mode. In this mode, the \fBINT\fP signal (normally generated from a
 terminal with CONTROL\-C) makes \fBsmartd\fP reload its configuration
-file.  Please use CONTROL-\e to exit
+file.  Please use CONTROL-\e (\fBQUIT\fP) to exit
 (Cygwin: 2x CONTROL\-C, Windows: CONTROL\-Break).
 
 Windows only: The "debug" mode can be toggled by the command
@@ -1669,7 +1670,7 @@
 can have the following values:
 .TP
 .B 0:
-Daemon startup successful, or \fBsmartd\fP was killed by a SIGTERM (or in debug mode, a SIGQUIT).
+Daemon startup successful, or \fBsmartd\fP was killed by a SIGTERM (or in debug mode, a SIGINT).
 .TP
 .B 1:
 Commandline did not parse.

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Smartmontools-support mailing list
Smartmontools-support@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/smartmontools-support

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic