media-sound/mpd: Fix pid_file presence check in init file
authorNado <nado@troglodyte.be>
Thu, 17 Nov 2016 14:08:08 +0000 (15:08 +0100)
committerRobin H. Johnson <robbat2@gentoo.org>
Fri, 17 Feb 2017 00:50:02 +0000 (16:50 -0800)
Package-Manager: portage-2.3.2
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
media-sound/mpd/files/mpd2.init

index d8b9de8938ab4272f637311f77668c4357d7c4eb..7e6e23979995a5affb29d124bee72d547277e54c 100644 (file)
@@ -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