diff options
author | cpiazza <cpiazza@FreeBSD.org> | 1999-06-28 07:07:31 +0000 |
---|---|---|
committer | cpiazza <cpiazza@FreeBSD.org> | 1999-06-28 07:07:31 +0000 |
commit | 2bfba3b483ce9d48cdefde2babdf725f1aed79e0 (patch) | |
tree | 11a92d18a049debefca5dd92e8a4cc547fb82227 /net/generic-nqs/scripts | |
parent | 4e4c0ae1f454cdcb51af8abf7b1872663a70e6c1 (diff) | |
download | FreeBSD-ports-2bfba3b483ce9d48cdefde2babdf725f1aed79e0.zip FreeBSD-ports-2bfba3b483ce9d48cdefde2babdf725f1aed79e0.tar.gz |
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>
Diffstat (limited to 'net/generic-nqs/scripts')
-rw-r--r-- | net/generic-nqs/scripts/create-example-batch-queues | 24 | ||||
-rw-r--r-- | net/generic-nqs/scripts/create-nqs-rc.sh | 15 | ||||
-rw-r--r-- | net/generic-nqs/scripts/syslog-add.sh | 10 |
3 files changed, 49 insertions, 0 deletions
diff --git a/net/generic-nqs/scripts/create-example-batch-queues b/net/generic-nqs/scripts/create-example-batch-queues new file mode 100644 index 0000000..f4c5ebcf --- /dev/null +++ b/net/generic-nqs/scripts/create-example-batch-queues @@ -0,0 +1,24 @@ +#!/bin/sh +qmgr <<eof +# +create pipe misc-sched run_limit= 40 destination= batch +enable queue misc-sched +start queue misc-sched +# +create batch_queue batch priority = 10 run_limit = 4 user_limit = 2 +set data_limit = (2gb) batch +set per_process permfile_limit = (2gb) batch +set STack_limit = ( 8192kb ) batch +# +create batch_queue misc priority = 10 run_limit = 4 user_limit = 1 +set data_limit = (2gb) batch +set per_process permfile_limit = (50mb) misc +set STack_limit = ( 8192kb ) misc +# +set default batch_request queue batch +SEt SHell_strategy FIxed = (/bin/csh) +enable queue batch +enable queue misc +start queue batch +start queue misc +eof 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 0000000..6087fae --- /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 "" diff --git a/net/generic-nqs/scripts/syslog-add.sh b/net/generic-nqs/scripts/syslog-add.sh new file mode 100644 index 0000000..d3e810b --- /dev/null +++ b/net/generic-nqs/scripts/syslog-add.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +if grep -q nqs /etc/syslog.conf +then : +else + echo "local0.* /var/log/nqs" >> /etc/syslog.conf + echo "" + echo "/etc/syslog modified to support nqs" + echo "" +fi |