From ef2f2c04ceb737d7551c8356d581748324c23f57 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Thu, 11 Jun 2009 17:39:48 +0000 Subject: [PATCH] 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 --- CHANGES | 1 + prog/sensord/args.c | 2 +- prog/sensord/sensord.8 | 12 ++++++------ 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGES b/CHANGES index 69c3bf8b..d8af1786 100644 --- a/CHANGES +++ b/CHANGES @@ -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 diff --git a/prog/sensord/args.c b/prog/sensord/args.c index d1a1d49b..e109bd22 100644 --- a/prog/sensord/args.c +++ b/prog/sensord/args.c @@ -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) diff --git a/prog/sensord/sensord.8 b/prog/sensord/sensord.8 index fb56a7ff..71c1a940 100644 --- a/prog/sensord/sensord.8 +++ b/prog/sensord/sensord.8 @@ -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