#!/bin/sh
# qx: QX 2.0 startup/shutdown script
# kh	version 2.1	9 Sep 1993
# kh	version 2.1.a	9 Nov 1993

qx_dir=/bg/gen/local/com

case $1 in
'start')
	set `who -r`
	case $9 in
	[23])	exit ;;
	esac
	echo "Starting QX queuing"
	$qx_dir/startqx ;;
'stop')
	echo "stopping QX queuing"
	$qx_dir/stopqx ;;
*)
	echo "usage: /etc/init.d/qx {start|stop}"
	;;
esac
