Use the "daemon" logging facility instead of "local4" by default.

Local facilities are meant for local uses, no daemon should use it by
default.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5737 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2009-06-11 17:39:48 +00:00
1 parent 8eeb9081a8
commit ef2f2c04ce
3 files changed
+8 -7

No files matched your search

+1
View File
@@ -15,6 +15,7 @@ SVN-HEAD
Cleanup and refactoring of the source code
Don't use the system log when generating a CGI script
Disable unit scaling for fan speeds
Use daemon logging facility instead of local4 by default
sensors-detect: Add nNidia nForce MCP78S SMBus detection
Display Super-I/O address even if LD is disabled
Differentiate between PC8374L and WPCD377I
+1 -1
View File
@@ -37,7 +37,7 @@ struct sensord_arguments sensord_args = {
.scanTime = 60,
.logTime = 30 * 60,
.rrdTime = 5 * 60,
.syslogFacility = LOG_LOCAL4,
.syslogFacility = LOG_DAEMON,
};
static int parseTime(char *arg)
+6 -6
View File
@@ -91,14 +91,13 @@ Specify the
.BR syslog (3)
facility to use when logging sensor readings and alarms; the default is
to use
.IR local4 .
.IR daemon .
Other possibile facilities include
Other possible facilities include
.IR local0
through
.IR local7 ,
.IR daemon
or
and
.IR user .
.IP "-g, --rrd-cgi directory"
Prints out a sample
@@ -140,7 +139,7 @@ for chips and features, and reload the libsensors configuration file.
All messages from this daemon are logged to
.BR syslog (3)
under the program name `sensord' and facility
.IR local4 ,
.IR daemon ,
or whatever is specified on the command line.
Regular sensor readings are logged at the level
@@ -155,7 +154,8 @@ when debugging is enabled.
You can use an appropriate `/etc/syslog.conf'
file to direct these messages in a useful manner. See
.BR syslog.conf (5)
for full details, however the following is a sample configuration:
for full details. Assuming you set the logging facility to local4,
the following is a sample configuration:
.IP
.nf
# Sample syslog.conf entries