commit:     8083fcc5e0412ce34c19ad5c8a161d7269429134
Author:     Nado <nado <AT> troglodyte <DOT> be>
AuthorDate: Thu Nov 17 14:08:08 2016 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Fri Feb 17 00:50:02 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8083fcc5

media-sound/mpd: Fix pid_file presence check in init file

Package-Manager: portage-2.3.2
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 media-sound/mpd/files/mpd2.init | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/media-sound/mpd/files/mpd2.init b/media-sound/mpd/files/mpd2.init
index d8b9de8938..7e6e239799 100644
--- a/media-sound/mpd/files/mpd2.init
+++ b/media-sound/mpd/files/mpd2.init
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -14,7 +14,7 @@ checkconfig() {
                return 1
        fi
 
-       if ! grep -q ^pid_file /etc/mpd.conf; then
+       if ! grep -q '^\s*pid_file' /etc/mpd.conf; then
                eerror "Invalid configuration: pid_file needs to be set."
                return 1
        fi

Reply via email to