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 2>&1 > /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:



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



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/
---



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



#!/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 " qmail"n/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 <

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:



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



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

Thanks
Best Regards
Florian