1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/net/generic-nqs/scripts/create-nqs-rc.sh
Steve Price 17353f3ac0 Update to version 3.50.6.
PR:		14915
Submitted by:	maintainer
1999-12-27 00:46:07 +00:00

19 lines
407 B
Bash

#!/bin/sh
PATH="/usr/bin:/bin"; export PATH
me=`basename $0`
if [ $# -lt 3 ]; then
echo usage: $me configfile nqs.sh rcdir >&2
exit 1
fi
root=`grep NQS_ROOTDIR $1 | cut -f2 -d\"`
sed -e"s#XXXX#$root#" $2 > $3
chmod 755 $3
echo ""
echo "Created $3 boot startup file."
echo " - it will startup the 2 NQS daemons"
echo " - run this script manually now before attempting to create queues"
echo ""