summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNado <nado@troglodyte.be>2016-11-17 15:08:08 +0100
committerRobin H. Johnson <robbat2@gentoo.org>2017-02-16 16:50:02 -0800
commit8083fcc5e0412ce34c19ad5c8a161d7269429134 (patch)
tree44ae033d222c85322b994515041c1473a08449d7
parentsci-mathematics/agda-stdlib: add forgotten 'standard-library.agda-lib' (diff)
downloadgentoo-8083fcc5e0412ce34c19ad5c8a161d7269429134.tar.gz
gentoo-8083fcc5e0412ce34c19ad5c8a161d7269429134.tar.bz2
gentoo-8083fcc5e0412ce34c19ad5c8a161d7269429134.zip
media-sound/mpd: Fix pid_file presence check in init file
Package-Manager: portage-2.3.2 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r--media-sound/mpd/files/mpd2.init4
1 files changed, 2 insertions, 2 deletions
diff --git a/media-sound/mpd/files/mpd2.init b/media-sound/mpd/files/mpd2.init
index d8b9de8938ab..7e6e23979995 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