From ae58b89b497a0301c6a58479de4b5ddb16deb9e8 Mon Sep 17 00:00:00 2001 From: crees Date: Fri, 31 May 2013 11:54:01 +0000 Subject: 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 --- audio/musicpd/files/musicpd.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'audio/musicpd/files') 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" -- cgit