Hi there,
Finally I got some help from the qmail mail list and the way to run it
is to have it running with -i option. I used tcpserver to replace inetd.
Here is the command:
PROG="sshd -i"
LKDIR=/var/lock/sshd
LOG="/var/log/sshd"
supervise $LKDIR tcpserver -v -c40 -u0 -g0 0 22 \
/usr/local/sbin/$PROG 2>&1 | supervise $LKDIR-cyclog cyclog $LOG &
BTW, I use cyclog for the system log and it's stored in a different
directory $LOG.
tcpserver let's me specify connections and uid and gid etc.
Thanks.
--George