need help with a service

Eduardo Gargiulo <[email protected]>
Newsgroups gmane.comp.djb.syslog
Message-ID <[email protected]>
Hi all

I'm using daemontools-0.76 on two linux boxes and running some services
like courier-imap, openssh, qmail, etc with tcpserver.

Now I'm trying to configure stunnel to connects to localhost:143 and
publish imap-over-ssl. In one of both server, it's working right, but in
the other, it isn't. Let me show you the configuration and run files

$ ls -l /usr/local/courier-imap/supervise/
total 12
drwxr-xr-t   2 root     root         4096 Apr 19  2002 env
drwxr-xr-t   4 root     root         4096 Jul 30  2002 imapd
drwxr-xr-t   4 root     root         4096 Aug 29 11:34 imapd-ssl

$ ls -l /usr/local/courier-imap/supervise/imapd-ssl/
total 12
drwxr-xr-x   3 root     root         4096 Aug 29 10:28 log
-rwxr-xr-x   1 root     root          308 Aug 29 11:34 run
drwx------   2 root     root         4096 Aug 29 11:39 supervise

$ ls -l /service/ | grep imapd
lrwxrwxrwx   1 root     root           39 Apr 12  2002 imapd -> /usr/local/courier-imap/supervise/imapd
lrwxrwxrwx   1 root     root           39 Apr 12  2002 imapd-ssl -> /usr/local/courier-imap/supervise/imapd-ssl

$ cat /service/imapd-ssl/run
#!/bin/sh

MAXCONNECTIONS=10
IPADDRESS=x.x.x.x

exec /usr/local/bin/softlimit -m 10000000     \
        /usr/local/bin/tcpserver -v -R -H -D  \
        -c "$MAXCONNECTIONS"                  \
        "$IPADDRESS" simap                    \
        /usr/local/stunnel/sbin/stunnel /etc/stunnel/imaps.conf

$ cat /service/imapd-ssl/log/run
#!/bin/sh

exec /usr/local/bin/setuidgid qmaill \
     /usr/local/bin/multilog t /var/log/qmail/imapd-ssl

If I runs the ./run script from command line, it works ok, but if try to
start the service from svc, the service is bound to the right
address:port, but it doesn't work, and it does not write logs, so I
can't figure out why is not working.

Any help would be appreciated.

thanks in advance and sorry for my english.

-ejg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.