- Fix rc script when running nslcd on host and within a jail

PR:		201298
Submitted by:	Kan Sasaki (sasaki@fcc.ad.jp)
This commit is contained in:
Ryan Steinmetz 2015-07-04 01:00:38 +00:00
parent 8d873b5682
commit 58a1d4eb97
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=391291
2 changed files with 5 additions and 4 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= nss-pam-ldapd
PORTVERSION= 0.8.14
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= net
MASTER_SITES= http://arthurdejong.org/nss-pam-ldapd/ \
http://mirrors.rit.edu/zi/

View file

@ -80,10 +80,11 @@ nslcd_stop()
nslcd_findpid()
{
if ! checkyesno nslcd_supervisor && $(%%PREFIX%%/sbin/nslcd -c && pgrep -F /var/run/nslcd.pid > /dev/null); then
if %%PREFIX%%/sbin/nslcd -c && pgrep -q -F /var/run/nslcd.pid; then
mypid=$(cat /var/run/nslcd.pid)
else
mypid=$(pgrep -f "daemon: %%PREFIX%%/sbin/nslcd")
if checkyesno nslcd_supervisor; then
mypid=$(pgrep -f "daemon: %%PREFIX%%/sbin/nslcd\[${mypid}\]")
fi
fi
}