errors from supervise

2001-08-14 Thread Florian Heiderich

Hello!

I'm a newbe in administrating (and installing) qmail.
Now I installed qmail completly, but it doesn't work. I used a
installation-howto, but now it doesn't work.
I have a init-script in /etc/rc.d/qmail

/etc/rc.d/qmail

#!/bin/sh
PATH=/var/qmail/bin:/usr/local/bin:/usr/bin:/bin
export PATH
case $1 in
start)
echo -n Starting qmail: svscan
cd /var/qmail/supervise
env - PATH=$PATH svscan 
echo $!  /var/run/svscan.pid
echo .
;;
stop)
echo -n Stopping qmail: svscan
echo -n  qmailn/svscan.pid
svc -dx /var/qmail/supervise/*
echo -n  logging
svc -dx /var/qmail/supervise/*/log
echo .
;;
stat)
cd /var/qmail/supervise
svstat * */log
;;
doqueue|alrm)
echo Sending ALRM signal to qmail-send.
svc -a /var/qmail/supervise/qmail-send
;;
queue)
qmail-qstat
qmail-qread
;;
reload|hup)
echo Sending HUP signal to qmail-send.
svc -h /var/qmail/supervise/qmail-send
;;
pause)
echo Pausing qmail-send
svc -p /var/qmail/supervise/qmail-send
echo Pausing qmail-smtpd
svc -p /var/qmail/supervise/qmail-smtpd
;;

cont)
echo Continuing qmail-send
svc -c /var/qmail/supervise/qmail-send
echo Continuing qmail-smtpd
svc -c /var/qmail/supervise/qmail-smtpd
;;
restart)
echo Restarting qmail:
echo * Stopping qmail-smtpd.
svc -d /var/qmail/supervise/qmail-smtpd
echo * Sending qmail-send SIGTERM and restarting.
svc -t /var/qmail/supervise/qmail-send
echo * Restarting qmail-smtpd.
svc -u /var/qmail/supervise/qmail-smtpd
;;
cdb)
tcprules /home/vpopmail/etc/tcp.smtp.cdb /home/vpopmail/etc/tcp.smtp.tmp
 /home
/vpopmail/etc/tcp.smtp
chmod 644 /home/vpopmail/etc/tcp.smtp*
echo Reloaded /home/vpopmail/etc/tcp.smtp.
;;
help)
cat HELP
stop -- stops mail service (smtp connections refused, nothing goes out)
start -- starts mail service (smtp connection accepted, mail can go out)
pause -- temporarily stops mail service (connections accepted, nothing
leaves)
cont -- continues paused mail service
stat -- displays status of mail service
cdb -- rebuild the tcpserver cdb file for smtp
restart -- stops and restarts smtp, sends qmail-send a TERM  restarts
it
doqueue -- sends qmail-send ALRM, scheduling queued messages for
delivery
reload -- sends qmail-send HUP, rereading locals and virtualdomains
queue -- shows status of queue
alrm -- same as doqueue
hup -- same as reload
HELP
;;
*)
echo Usage: $0
{start|stop|restart|doqueue|reload|stat|pause|cont|cdb|queue|help}
exit 1
;;
esac
exit 0
//etc/rc.d/qmail

If I start the script (with /etc/rc.d/qmail start), I got error messages
on my console and I have to kill the all supervise processes from an
other console to stop these messages.

Here is an extract from the error messages on the conlose:

error

Starting qmail: svscan.
PLUTO:/etc/rc.d # tcpserver: option requires an argument -- c
setuidgid: fatal: unable to run /usr/local/bin/multilog: access denied
setuidgid: fatal: unable to run /usr/local/bin/multilog: access denied
tcpserver: usage: tcpserver [ -1UXpPhHrRoOdDqQv ] [ -c limit ] [ -x
rules.cdb ] [ -B banner ] [ -g gid ] [ -u uid ] [ -b backlog ] [ -l
localname ] [ -t timeout ] host port program
setuidgid: fatal: unable to run /usr/local/bin/multilog: access denied
setuidgid: fatal: unable to run /usr/local/bin/multilog: access denied
setuidgid: fatal: unable to run /usr/local/bin/multilog: access denied
setuidgid: fatal: unable to run /usr/local/bin/multilog: access denied
tcpserver: option requires an argument -- c
tcpserver: usage: tcpserver [ -1UXpPhHrRoOdDqQv ] [ -c limit ] [ -x
rules.cdb ] [ -B banner ] [ -g gid ] [ -u uid ] [ -b backlog ] [ -l
localname ] [ -t timeout ] host port program
setuidgid: fatal: unable to run /usr/local/bin/multilog: access denied
tcpserver: option requires an argument -- c
setuidgid: fatal: unable to run /usr/local/bin/multilog: access denied
tcpserver: usage: tcpserver [ -1UXpPhHrRoOdDqQv ] [ -c limit ] [ -x
rules.cdb ] [ -B banner ] [ -g gid ] [ -u uid ] [ -b backlog ] [ -l
localname ] [ -t timeout ] host port program
setuidgid: fatal: unable to run /usr/local/bin/multilog: access denied
setuidgid: fatal: unable to run /usr/local/bin/multilog: access denied
setuidgid: fatal: unable to run /usr/local/bin/multilog: access denied
setuidgid: fatal: unable to run /usr/local/bin/multilog: access denied

/error

Any hints?
Maybe someone could tell me, what supervise is?!
I didn't find any help or manpage.

Thanks
Best Regards
Florian



Re: errors from supervise

2001-08-14 Thread Charles Cazabon

Florian Heiderich [EMAIL PROTECTED] wrote:
 
 PLUTO:/etc/rc.d # tcpserver: option requires an argument -- c
 setuidgid: fatal: unable to run /usr/local/bin/multilog: access denied

You didn't do the install correctly (specifically, you failed to create
one of the necessary control files for this script).  On top of that,
your daemontools isn't installed correctly.

Installation isn't a oh, it's close kind of thing.  You have to be
precise and accurate.  I suggest you un-install and follow the
instructions in Life with qmail (lifewithqmail.org) to the letter.

Charles
-- 
---
Charles Cazabon[EMAIL PROTECTED]
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
---



RES: errors from supervise

2001-08-14 Thread Agnaldo M. Monteiro

Hi,

Remember qmail need UID and GID, if you uses qmail with vpomail try the following:

This is a startup script for qmail/tcpserver/vpopamil/qmailscanner, in my System all 
works fine.

  echo Starting Qmail services with TcpServer: 
exec env - PATH=/var/qmail/bin:$PATH \
qmail-start ./Maildir splogger qmail

(env - PATH=/var/qmail/bin:/usr/local/bin \
  QMAILQUEUE=/var/qmail/bin/qmail-scanner-queue.pl \
/usr/local/bin/supervise /usr/local/bin/tcpserver -H -R -x /etc/tcp.smtp.cdb \
-c 100 -u 109 -g 103 0 smtp \
/usr/local/bin/rblsmtpd -rrelays.orbs.org -rrbl.maps.vix.com 
/var/qmail/bin/qmail-smtpd 21  /dev/null ) | splogger tcpserver 

env - PATH=/var/qmail/bin:/usr/local/bin \
/usr/local/bin/tcpserver -v -c 100 -u 109 -g 103 -H -R -x /etc/tcp.smtp.cdb 0 pop3 
/var/qma
il/bin/qmail-popup host.domain.com /var/vpopmail/bin/vchkpw /var/qmail
/bin/qmail-pop3d Maildir 

See qmail docs for details.

Best regards,

Agnaldo Mariano Monteiro
Engenharia de Sistemas
Fujitsu do Brasil Ltda.
Tel.:   (11) 245-0964 (Direto)
[EMAIL PROTECTED]

Here is an extract from the error messages on the conlose:

error

Starting qmail: svscan.
PLUTO:/etc/rc.d # tcpserver: option requires an argument -- c
setuidgid: fatal: unable to run /usr/local/bin/multilog: access denied
setuidgid: fatal: unable to run /usr/local/bin/multilog: access denied
tcpserver: usage: tcpserver [ -1UXpPhHrRoOdDqQv ] [ -c limit ] [ -x
rules.cdb ] [ -B banner ] [ -g gid ] [ -u uid ] [ -b backlog ] [ -l
localname ] [ -t timeout ] host port program
setuidgid: fatal: unable to run /usr/local/bin/multilog: access denied
setuidgid: fatal: unable to run /usr/local/bin/multilog: access denied
setuidgid: fatal: unable to run /usr/local/bin/multilog: access denied
setuidgid: fatal: unable to run /usr/local/bin/multilog: access denied
tcpserver: option requires an argument -- c
tcpserver: usage: tcpserver [ -1UXpPhHrRoOdDqQv ] [ -c limit ] [ -x
rules.cdb ] [ -B banner ] [ -g gid ] [ -u uid ] [ -b backlog ] [ -l
localname ] [ -t timeout ] host port program
setuidgid: fatal: unable to run /usr/local/bin/multilog: access denied
tcpserver: option requires an argument -- c
setuidgid: fatal: unable to run /usr/local/bin/multilog: access denied
tcpserver: usage: tcpserver [ -1UXpPhHrRoOdDqQv ] [ -c limit ] [ -x
rules.cdb ] [ -B banner ] [ -g gid ] [ -u uid ] [ -b backlog ] [ -l
localname ] [ -t timeout ] host port program
setuidgid: fatal: unable to run /usr/local/bin/multilog: access denied
setuidgid: fatal: unable to run /usr/local/bin/multilog: access denied
setuidgid: fatal: unable to run /usr/local/bin/multilog: access denied
setuidgid: fatal: unable to run /usr/local/bin/multilog: access denied

/error

Any hints?
Maybe someone could tell me, what supervise is?!
I didn't find any help or manpage.

Thanks
Best Regards
Florian