From 78411f261521f5641578f54ff34270e7737af213 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 6 Feb 2015 20:33:44 +0100 Subject: [PATCH] acpid: disable logging to console (LOG_CONS). There's no reason to spam the console with those messages by default. --- srcpkgs/acpid/files/acpid/run | 2 +- .../acpid/patches/disable-logging-to-console.patch | 11 +++++++++++ srcpkgs/acpid/template | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/acpid/patches/disable-logging-to-console.patch diff --git a/srcpkgs/acpid/files/acpid/run b/srcpkgs/acpid/files/acpid/run index bb44ad7b041..2f1ecdb65c2 100755 --- a/srcpkgs/acpid/files/acpid/run +++ b/srcpkgs/acpid/files/acpid/run @@ -1,2 +1,2 @@ #!/bin/sh -exec acpid -d +exec acpid -fl diff --git a/srcpkgs/acpid/patches/disable-logging-to-console.patch b/srcpkgs/acpid/patches/disable-logging-to-console.patch new file mode 100644 index 00000000000..1b2b16bead9 --- /dev/null +++ b/srcpkgs/acpid/patches/disable-logging-to-console.patch @@ -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; + } diff --git a/srcpkgs/acpid/template b/srcpkgs/acpid/template index c35e9638612..e7275eb9616 100644 --- a/srcpkgs/acpid/template +++ b/srcpkgs/acpid/template @@ -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"