[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem starting daemon from rc.local



I just compiled and installed courier-imap-0.18, which provides imap
access to Maildir mailboxes, on my OpenBSD-2.5 box.  A startup script
is used to start two daemons, 'couriertcpd,' which listens for
connections on port 143, and 'imaplogin,' which authenticates users. 
If I run the startup script from the command line, both daemons start
properly, but if the script is run from rc.local, only the first
daemon, couriertcpd, is started.  I communicated with the developer of
the software, and at his suggestion, used ktrace to see what was
happening in rc.local that might be causing the problem.  It turns out
to be a SIGHUP that clobbers imaplogin.  (couriertcpd traps signals
but imaplogin doesn't)  So I added '/usr/bin/nohup' to the beginning
of the command in rc.local but that did not help.

I've seen a few messages in the archives that describe this same type
of behavior but couldn't find one describing a solution.  Does anyone
know how to solve this problem?

Thanks.

-Ben Bullock



Visit your host, monkey.org