I'm trying to set up an autoturn implementation we've been using to run
under svscan with all the other spiffy daemontools. The tcpserver
command that launches maildirserial and all that is running great, but
the log command is continually being restarted by supervise. I'm quite
confused, as the log/run script is virtually identical to the others I'm
using for qmail-smtpd, qmail-send, etc.
Anyway, here's the svscan directory structure I'm working with, with the
autoturn directory symlinked into /service, with the rest of my svscan
proggies:
------
amazhan [11:53am] # ls -ld /var/qmail/supervise/autoturn
drwx--x--T 4 root qmail 512 Sep 18 11:39 /var/qmail/supervise/autoturn
^
Sticky bit IS set...
amazhan [11:54am] # ls -lR /var/qmail/supervise/autoturn
total 3
drwxr-xr-x 3 root qmail 512 Sep 18 11:46 log
-rwxr-xr-x 1 root qmail 225 Sep 18 11:39 run
drwx------ 2 root qmail 512 Sep 18 11:40 supervise
/var/qmail/supervise/autoturn/log:
total 2
-rw-r--r-- 1 root qmail 91 Sep 18 11:46 run
drwx------ 2 root qmail 512 Sep 18 11:47 supervise
/var/qmail/supervise/autoturn/log/supervise:
total 1
prw------- 1 root qmail 0 Sep 18 11:47 control
-rw------- 1 root qmail 0 Sep 18 11:30 lock
prw------- 1 root qmail 0 Sep 18 11:30 ok
-rw-r--r-- 1 root qmail 18 Sep 18 11:47 status
/var/qmail/supervise/autoturn/supervise:
total 1
prw------- 1 root qmail 0 Sep 18 11:39 control
-rw------- 1 root qmail 0 Sep 18 11:30 lock
prw------- 1 root qmail 0 Sep 18 11:30 ok
-rw-r--r-- 1 root qmail 18 Sep 18 11:40 status
------
And the actual "run" scripts:
------
amazhan [11:55am] # cat /var/qmail/supervise/autoturn/run
#!/bin/sh
exec /usr/local/bin/tcpserver -l amazhan -H -q -R \
-x /etc/tcprules/tcp.autoturn.cdb -u74 -g1001 0 1338 \
sh -c 'cd /var/qmail/autoturn;maildirsmtp $TCPREMOTEIP autoturn-$TCPREMOTEIP-
$TCPREMOTEIP AutoTURN' 2>&1
amazhan [11:55am] # cat /var/qmail/supervise/autoturn/log/run
#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t /var/log/autoturn
------
According to the multilog docs, /var/log/autoturn shouldn't even need to
exist, as it will create it if it doesn't. But after it failed the
first time, I created the directory, owned by qmaill, with perms the
same as the other multilog directories (755).
What am I missing?
Thanks,
Ben
--
Ben Beuchler [EMAIL PROTECTED]
MAILER-DAEMON (612) 321-9290 x101
Bitstream Underground www.bitstream.net