aboutsummaryrefslogtreecommitdiffstats
path: root/audio/musicpd/files
diff options
context:
space:
mode:
authorcrees <crees@FreeBSD.org>2013-05-31 19:54:01 +0800
committercrees <crees@FreeBSD.org>2013-05-31 19:54:01 +0800
commitae58b89b497a0301c6a58479de4b5ddb16deb9e8 (patch)
tree0b5233ed2a1bc25f12dc9d56da8b18ad62e8ca06 /audio/musicpd/files
parent13191723730822c675392ffc431470eb8ac4e095 (diff)
downloadfreebsd-ports-gnome-ae58b89b497a0301c6a58479de4b5ddb16deb9e8.tar.gz
freebsd-ports-gnome-ae58b89b497a0301c6a58479de4b5ddb16deb9e8.tar.zst
freebsd-ports-gnome-ae58b89b497a0301c6a58479de4b5ddb16deb9e8.zip
Stop checking for get_pidfile_from_conf function in rc.subr.
It is present in all supported versions of FreeBSD, and has had poor takeup. I strongly suspect the strange-looking checks are partially to blame for scaring maintainers off. Go forth and please use it! PR: ports/178269 Approved by: maintainers of all ports involved
Diffstat (limited to 'audio/musicpd/files')
-rw-r--r--audio/musicpd/files/musicpd.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/audio/musicpd/files/musicpd.in b/audio/musicpd/files/musicpd.in
index cf17c20f185d..f367cde80173 100644
--- a/audio/musicpd/files/musicpd.in
+++ b/audio/musicpd/files/musicpd.in
@@ -27,8 +27,7 @@ stop_precmd=${name}_getpidfile
musicpd_getpidfile()
{
- if type get_pidfile_from_conf >/dev/null 2>&1 &&
- get_pidfile_from_conf pid_file %%PREFIX%%/etc/musicpd.conf ; then
+ if get_pidfile_from_conf pid_file %%PREFIX%%/etc/musicpd.conf ; then
pidfile="$_pidfile_from_conf"
else
pidfile="%%MPDDIR%%/.mpd/pid"