acpid: disable logging to console (LOG_CONS).

There's no reason to spam the console with those messages by default.
This commit is contained in:
Juan RP 2015-02-06 20:33:44 +01:00
parent 5ed2cba8c3
commit 78411f2615
3 changed files with 13 additions and 2 deletions

View File

@ -1,2 +1,2 @@
#!/bin/sh
exec acpid -d
exec acpid -fl

View File

@ -0,0 +1,11 @@
--- acpid.c.orig 2015-02-06 20:32:04.341695981 +0100
+++ acpid.c 2015-02-06 20:32:13.540974475 +0100
@@ -390,7 +390,7 @@ open_log(void)
int log_opts;
/* open the syslog */
- log_opts = LOG_CONS|LOG_NDELAY;
+ log_opts = LOG_NDELAY;
if (acpid_debug) {
log_opts |= LOG_PERROR;
}

View File

@ -1,7 +1,7 @@
# Template file for 'acpid'
pkgname=acpid
version=2.0.23
revision=9
revision=10
build_options="systemd"
build_style=gnu-configure
conf_files="/etc/acpi/events/anything /etc/acpi/handler.sh"