summaryrefslogtreecommitdiff
path: root/net/generic-nqs/scripts/create-nqs-rc.sh
diff options
context:
space:
mode:
authorChris Piazza <cpiazza@FreeBSD.org>1999-06-28 07:07:31 +0000
committerChris Piazza <cpiazza@FreeBSD.org>1999-06-28 07:07:31 +0000
commitcad6c0c117fe4b1c6ae18dda6a02174a31dc4295 (patch)
treef8a77505ed450af8911e77789464145b2a168e9d /net/generic-nqs/scripts/create-nqs-rc.sh
parentMove generic-nqs to the net category. (diff)
Generic-NQS, a freely available Network Queuing System that provides
configurable limits on jobs on a per queue basis as well as for the total queue system. It is based on the de facto NQS standards and is interoperable with commercial NQS products. PR: 6699 Submitted by: Tony Maher <tonym@angis.org.au>
Notes
Notes: svn path=/head/; revision=19862
Diffstat (limited to 'net/generic-nqs/scripts/create-nqs-rc.sh')
-rw-r--r--net/generic-nqs/scripts/create-nqs-rc.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/net/generic-nqs/scripts/create-nqs-rc.sh b/net/generic-nqs/scripts/create-nqs-rc.sh
new file mode 100644
index 000000000000..6087fae4b88f
--- /dev/null
+++ b/net/generic-nqs/scripts/create-nqs-rc.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+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 startup file"
+echo ""