Fix a buglet and finish pointing the config file at ${PREFIX}/etc, not

/etc as in NetBSD
This commit is contained in:
Kris Kennaway 2001-01-15 05:26:00 +00:00
parent 04665ddc39
commit 93cbcc1bec
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=37211
2 changed files with 7 additions and 7 deletions

View File

@ -25,7 +25,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS= --datadir=${PREFIX}/share/pks --localstatedir=/var/pks \
--sysconfdir=${PREFIX}/share/examples \
--libdir=${LOCALBASE}/lib
CONFIGURE_ENV= LDFLAGS=-L${LOCALBASE}/lib
MAKE_ENV+= LDFLAGS=-L${LOCALBASE}/lib
MAN5= pksd.conf.5
MAN8= pks-intro.8 pksclient.8 pksd.8 pksdctl.8

View File

@ -10,11 +10,11 @@ command=${1:-start}
case ${command} in
start)
if [ ! -f /etc/${name}.conf ]
if [ ! -f @PREFIX@/etc/${name}.conf ]
then
exit 0
else
dbdir=`awk '/db_dir/ { print $2 }' < /etc/${name}.conf`
dbdir=`awk '/db_dir/ { print $2 }' < @PREFIX@/etc/${name}.conf`
fi
if [ ! -f ${dbdir}/keydb000 -a -x @PREFIX@/bin/pksclient ]
then
@ -23,17 +23,17 @@ start)
if [ -x @PREFIX@/bin/${name} -a -x @PREFIX@/bin/pks-queue-run.sh ]
then
echo "Starting ${name}."
@PREFIX@/bin/${name} /etc/${name}.conf &
@PREFIX@/bin/${name} @PREFIX@/etc/${name}.conf &
sleep 5
@PREFIX@/bin/pks-queue-run.sh /etc/${name}.conf
@PREFIX@/bin/pks-queue-run.sh @PREFIX@/etc/${name}.conf
fi
;;
stop)
if [ ! -f /etc/${name}.conf ]
if [ ! -f @PREFIX@/etc/${name}.conf ]
then
exit 0
else
socket=`awk '/socket_name/ { print $2 }' < /etc/${name}.conf`
socket=`awk '/socket_name/ { print $2 }' < @PREFIX@/etc/${name}.conf`
fi
if [ -x @PREFIX@/bin/${name}ctl -a -S ${socket} ]
then