Re: qmail-conf-054 / multilog
On Fri, Feb 23, 2001 at 10:33:57AM -0500, Paul Farber wrote: It appears that all logging is being dumped to the first virtual console: info msg 224981: bytes 32957 from #@[] qp 9474 uid 0 starting delivery 1692: msg 224981 to local [EMAIL PROTECTED] status: local 1/10 remote 0/20 delivery 1692: success: did_1+0+0/ status: local 0/10 remote 0/20 end msg 224981 new msg 224981 info msg 224981: bytes 3235 from [EMAIL PROTECTED] qp 9479 uid 0 starting delivery 1693: msg 224981 to local [EMAIL PROTECTED] status: local 1/10 remote 0/20 delivery 1693: success: did_1+0+0/ status: local 0/10 remote 0/20 end msg 224981 even though I have log/run set up EXACTLY as in the supervise man page. Is this a supervise/multilog bug? anyone getting qmail to log deliveries to multilog using log/run ? Did you set the sticky bit on your qmail service directory? Chris PGP signature
Re: qmail-conf-054 / multilog
Paul Farber [EMAIL PROTECTED] wrote: even though I have log/run set up EXACTLY as in the supervise man page. Including the sticky bit on the on the qmail-send directory? Is this a supervise/multilog bug? No. anyone getting qmail to log deliveries to multilog using log/run ? Of course. Any advise would be helpful. Provide more useful information than 'I set it up right and it doesn't work'. For example, the output of: cd [supervise directory] ls -lR cat */run */log/run -Dave
Re: qmail-conf-054 / multilog
I have drwxr-xr-x 4 root root 4096 Feb 21 01:40 service and under that drwxr-xr-x 4 root root 4096 Feb 21 01:40 . drwxr-xr-x 13 root qmail4096 Feb 20 23:20 .. drwxr-sr-x 5 root root 4096 Feb 21 01:11 qmail drwxr-sr-x 5 root root 4096 Feb 21 01:35 qmail-smtpd Since the manual (man chmod) or the qmail-conf program docs didn't allude to it... what is the 'sticky bit'? Paul Farber Farber Technology [EMAIL PROTECTED] Ph 570-628-5303 Fax 570-628-5545 On Fri, 23 Feb 2001, Chris Johnson wrote: On Fri, Feb 23, 2001 at 10:33:57AM -0500, Paul Farber wrote: It appears that all logging is being dumped to the first virtual console: info msg 224981: bytes 32957 from #@[] qp 9474 uid 0 starting delivery 1692: msg 224981 to local [EMAIL PROTECTED] status: local 1/10 remote 0/20 delivery 1692: success: did_1+0+0/ status: local 0/10 remote 0/20 end msg 224981 new msg 224981 info msg 224981: bytes 3235 from [EMAIL PROTECTED] qp 9479 uid 0 starting delivery 1693: msg 224981 to local [EMAIL PROTECTED] status: local 1/10 remote 0/20 delivery 1693: success: did_1+0+0/ status: local 0/10 remote 0/20 end msg 224981 even though I have log/run set up EXACTLY as in the supervise man page. Is this a supervise/multilog bug? anyone getting qmail to log deliveries to multilog using log/run ? Did you set the sticky bit on your qmail service directory? Chris
Re: qmail-conf-054 / multilog
On Fri, Feb 23, 2001 at 12:13:37PM -0500, Paul Farber wrote: drwxr-xr-x 4 root root 4096 Feb 21 01:40 service and under that drwxr-xr-x 4 root root 4096 Feb 21 01:40 . drwxr-xr-x 13 root qmail4096 Feb 20 23:20 .. drwxr-sr-x 5 root root 4096 Feb 21 01:11 qmail drwxr-sr-x 5 root root 4096 Feb 21 01:35 qmail-smtpd Since the manual (man chmod) or the qmail-conf program docs didn't allude to it... what is the 'sticky bit'? chmod +t the directory. (Are you sure man chmod doesn't refer to this?) From http://cr.yp.to/daemontools/svscan.html: "If a subdirectory sub is sticky, svscan starts a pair of supervise processes, one for sub, one for sub/log, with a pipe between them. svscan needs two free descriptors for each pipe." Chris PGP signature
Re: qmail-conf-054 / multilog
On Fri, Feb 23, 2001 at 12:13:37PM -0500, Paul Farber wrote: I have drwxr-xr-x 4 root root 4096 Feb 21 01:40 service and under that drwxr-xr-x 4 root root 4096 Feb 21 01:40 . drwxr-xr-x 13 root qmail4096 Feb 20 23:20 .. drwxr-sr-x 5 root root 4096 Feb 21 01:11 qmail drwxr-sr-x 5 root root 4096 Feb 21 01:35 qmail-smtpd Since the manual (man chmod) or the qmail-conf program docs didn't allude to it... what is the 'sticky bit'? Hmm. Solaris manpage talks about it as does FreeBSD - you must be on Linux, right? In octal it is 1000 or symbolically, +t. Thus: chmod +t /service/qmail Regards. Paul Farber Farber Technology [EMAIL PROTECTED] Ph 570-628-5303 Fax 570-628-5545 On Fri, 23 Feb 2001, Chris Johnson wrote: On Fri, Feb 23, 2001 at 10:33:57AM -0500, Paul Farber wrote: It appears that all logging is being dumped to the first virtual console: info msg 224981: bytes 32957 from #@[] qp 9474 uid 0 starting delivery 1692: msg 224981 to local [EMAIL PROTECTED] status: local 1/10 remote 0/20 delivery 1692: success: did_1+0+0/ status: local 0/10 remote 0/20 end msg 224981 new msg 224981 info msg 224981: bytes 3235 from [EMAIL PROTECTED] qp 9479 uid 0 starting delivery 1693: msg 224981 to local [EMAIL PROTECTED] status: local 1/10 remote 0/20 delivery 1693: success: did_1+0+0/ status: local 0/10 remote 0/20 end msg 224981 even though I have log/run set up EXACTLY as in the supervise man page. Is this a supervise/multilog bug? anyone getting qmail to log deliveries to multilog using log/run ? Did you set the sticky bit on your qmail service directory? Chris
Re: qmail-conf-054 / multilog
DOH The manpage I have referneces .70 but nothing about a sticky bit oh well, live and learn.. and learn and learn and learn! Paul Farber Farber Technology [EMAIL PROTECTED] Ph 570-628-5303 Fax 570-628-5545 On Fri, 23 Feb 2001, Chris Johnson wrote: On Fri, Feb 23, 2001 at 12:13:37PM -0500, Paul Farber wrote: drwxr-xr-x 4 root root 4096 Feb 21 01:40 service and under that drwxr-xr-x 4 root root 4096 Feb 21 01:40 . drwxr-xr-x 13 root qmail4096 Feb 20 23:20 .. drwxr-sr-x 5 root root 4096 Feb 21 01:11 qmail drwxr-sr-x 5 root root 4096 Feb 21 01:35 qmail-smtpd Since the manual (man chmod) or the qmail-conf program docs didn't allude to it... what is the 'sticky bit'? chmod +t the directory. (Are you sure man chmod doesn't refer to this?) From http://cr.yp.to/daemontools/svscan.html: "If a subdirectory sub is sticky, svscan starts a pair of supervise processes, one for sub, one for sub/log, with a pipe between them. svscan needs two free descriptors for each pipe." Chris
Re: qmail-conf-054 / multilog
Tried that... but it will not fire off a copy of multilog: 3181 ?S 0:00 supervise qmail-smtpd 3182 ?S 0:00 /usr/local/bin/tcpserver -qDHR -ladmin.f-tech.net -xt here is some file info: drwxr-sr-t 5 root root 4096 Feb 21 01:35 qmail-smtpd ./run= #!/bin/sh exec 21 \ envdir ./env \ sh -c ' case "$REMOTENAME" in h) H=;; p) H=p;; *) H=H;; esac case "$REMOTEINFO" in r) R=;; [0-9]*) R="t$REMOTEINFO";; *) R=R;; esac exec \ /usr/local/bin/envuidgid qmaild \ softlimit ${DATALIMIT+"-d$DATALIMIT"} \ /usr/local/bin/tcpserver \ -qD"$H$R" \ ${LOCALNAME+"-l$LOCALNAME"} \ ${BACKLOG+"-b$BACKLOG"} \ ${CONCURRENCY+"-c$CONCURRENCY"} \ -xtcp.cdb \ -- "${IP-0}" "${PORT-25}" \ /var/qmail/bin/qmail-smtpd ' ./run/log= [root@admin log]# cat run #!/bin/sh exec \ setuidgid qmaill \ multilog t ./main ./mail is empty... and there is no multilog process running Paul Farber Farber Technology [EMAIL PROTECTED] Ph 570-628-5303 Fax 570-628-5545 On Fri, 23 Feb 2001, Chris Johnson wrote: On Fri, Feb 23, 2001 at 12:13:37PM -0500, Paul Farber wrote: drwxr-xr-x 4 root root 4096 Feb 21 01:40 service and under that drwxr-xr-x 4 root root 4096 Feb 21 01:40 . drwxr-xr-x 13 root qmail4096 Feb 20 23:20 .. drwxr-sr-x 5 root root 4096 Feb 21 01:11 qmail drwxr-sr-x 5 root root 4096 Feb 21 01:35 qmail-smtpd Since the manual (man chmod) or the qmail-conf program docs didn't allude to it... what is the 'sticky bit'? chmod +t the directory. (Are you sure man chmod doesn't refer to this?) From http://cr.yp.to/daemontools/svscan.html: "If a subdirectory sub is sticky, svscan starts a pair of supervise processes, one for sub, one for sub/log, with a pipe between them. svscan needs two free descriptors for each pipe." Chris
Re: qmail-conf-054 / multilog
Assuminmg you're running this all via svscan, the problem is that svscan only notices the +t flag when it first sees the directory in /service. You need to remove the service and re-add it. I believe the daemontools page at cr.yp.to has the sequence needed to do this. Regards. On Fri, Feb 23, 2001 at 03:05:23PM -0500, Paul Farber wrote: Tried that... but it will not fire off a copy of multilog: 3181 ?S 0:00 supervise qmail-smtpd 3182 ?S 0:00 /usr/local/bin/tcpserver -qDHR -ladmin.f-tech.net -xt here is some file info: drwxr-sr-t 5 root root 4096 Feb 21 01:35 qmail-smtpd ./run= #!/bin/sh exec 21 \ envdir ./env \ sh -c ' case "$REMOTENAME" in h) H=;; p) H=p;; *) H=H;; esac case "$REMOTEINFO" in r) R=;; [0-9]*) R="t$REMOTEINFO";; *) R=R;; esac exec \ /usr/local/bin/envuidgid qmaild \ softlimit ${DATALIMIT+"-d$DATALIMIT"} \ /usr/local/bin/tcpserver \ -qD"$H$R" \ ${LOCALNAME+"-l$LOCALNAME"} \ ${BACKLOG+"-b$BACKLOG"} \ ${CONCURRENCY+"-c$CONCURRENCY"} \ -xtcp.cdb \ -- "${IP-0}" "${PORT-25}" \ /var/qmail/bin/qmail-smtpd ' ./run/log= [root@admin log]# cat run #!/bin/sh exec \ setuidgid qmaill \ multilog t ./main ./mail is empty... and there is no multilog process running Paul Farber Farber Technology [EMAIL PROTECTED] Ph 570-628-5303 Fax 570-628-5545 On Fri, 23 Feb 2001, Chris Johnson wrote: On Fri, Feb 23, 2001 at 12:13:37PM -0500, Paul Farber wrote: drwxr-xr-x 4 root root 4096 Feb 21 01:40 service and under that drwxr-xr-x 4 root root 4096 Feb 21 01:40 . drwxr-xr-x 13 root qmail4096 Feb 20 23:20 .. drwxr-sr-x 5 root root 4096 Feb 21 01:11 qmail drwxr-sr-x 5 root root 4096 Feb 21 01:35 qmail-smtpd Since the manual (man chmod) or the qmail-conf program docs didn't allude to it... what is the 'sticky bit'? chmod +t the directory. (Are you sure man chmod doesn't refer to this?) From http://cr.yp.to/daemontools/svscan.html: "If a subdirectory sub is sticky, svscan starts a pair of supervise processes, one for sub, one for sub/log, with a pipe between them. svscan needs two free descriptors for each pipe." Chris
Re: qmail-conf-054 / multilog
Is there a specific kernel setting I need for supervise to log correctly??? I am on kernel 2.4.1 it's working fine on a RH 6.2 machine with 2.2.17 (using djbdns). The sticky bit seemed to have no effect.. and nothing is being logged error-wise. Paul Farber Farber Technology [EMAIL PROTECTED] Ph 570-628-5303 Fax 570-628-5545 On Fri, 23 Feb 2001, Chris Johnson wrote: On Fri, Feb 23, 2001 at 12:13:37PM -0500, Paul Farber wrote: drwxr-xr-x 4 root root 4096 Feb 21 01:40 service and under that drwxr-xr-x 4 root root 4096 Feb 21 01:40 . drwxr-xr-x 13 root qmail4096 Feb 20 23:20 .. drwxr-sr-x 5 root root 4096 Feb 21 01:11 qmail drwxr-sr-x 5 root root 4096 Feb 21 01:35 qmail-smtpd Since the manual (man chmod) or the qmail-conf program docs didn't allude to it... what is the 'sticky bit'? chmod +t the directory. (Are you sure man chmod doesn't refer to this?) From http://cr.yp.to/daemontools/svscan.html: "If a subdirectory sub is sticky, svscan starts a pair of supervise processes, one for sub, one for sub/log, with a pipe between them. svscan needs two free descriptors for each pipe." Chris
Re: qmail-conf-054 / multilog
For debugging purposes you might want to run svscan manually so the errors go to the screen/window you're on. On Fri, Feb 23, 2001 at 06:25:11PM -0500, Paul Farber wrote: Is there a specific kernel setting I need for supervise to log Not unless it's some wierd Unix. svscan writes errors to stderr. You don't need kernel settings to control where that goes. correctly??? I am on kernel 2.4.1 it's working fine on a RH 6.2 machine with 2.2.17 (using djbdns). The sticky bit seemed to have no effect.. Did you restart svscan? and nothing is being logged error-wise. Did you check the system console? Regards. Paul Farber Farber Technology [EMAIL PROTECTED] Ph 570-628-5303 Fax 570-628-5545 On Fri, 23 Feb 2001, Chris Johnson wrote: On Fri, Feb 23, 2001 at 12:13:37PM -0500, Paul Farber wrote: drwxr-xr-x 4 root root 4096 Feb 21 01:40 service and under that drwxr-xr-x 4 root root 4096 Feb 21 01:40 . drwxr-xr-x 13 root qmail4096 Feb 20 23:20 .. drwxr-sr-x 5 root root 4096 Feb 21 01:11 qmail drwxr-sr-x 5 root root 4096 Feb 21 01:35 qmail-smtpd Since the manual (man chmod) or the qmail-conf program docs didn't allude to it... what is the 'sticky bit'? chmod +t the directory. (Are you sure man chmod doesn't refer to this?) From http://cr.yp.to/daemontools/svscan.html: "If a subdirectory sub is sticky, svscan starts a pair of supervise processes, one for sub, one for sub/log, with a pipe between them. svscan needs two free descriptors for each pipe." Chris