I've been having problems running sslwrap out of inetd so I decided to run it
via tcpserver instead.. I'm using svscan. But for some reason, the logs
refuse to go to /var/log/qmail/ssl/.
Here's my "run" file:
#!/bin/sh
PATH=$PATH:/var/qmail/bin:/usr/local/bin
exec /usr/local/bin/softlimit -m 10000000 \
tcpserver -u65534 -g65534 0 995 /usr/sbin/sslwrap \
-cert /etc/sslwrap/server.pem -port 110 -without_pid
and here's log/run:
#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t s2500000
/var/log/qmail/ssl
Now, the files get created:
orbicus:/var/qmail/supervise/ssl# ls -l /var/log/qmail/ssl/
total 0
-rw-r--r-- 1 qmaill nogroup 0 Aug 3 17:38 current
-rw------- 1 qmaill nogroup 0 Aug 3 17:38 lock
-rw-r--r-- 1 qmaill nogroup 0 Aug 3 17:38 state
But, nothing ever gets logged there. The logs go to the terminal I started
svscan from.
I am pretty sure svscan expects the logging to come through on a certain file
descriptor, but not positive. Does anyone know if this is the case? If so,
which one is it? Should I just add a 2>&1 at the end of "run"?
--Adam