1 |
Christian Spoo wrote: |
2 |
>>> I've been running net-mail/courier-imap version 4.0.1 for quite a while |
3 |
>>> but suddenly it refuses to restart. |
4 |
>>> |
5 |
>> "Suddenly" ? |
6 |
>> |
7 |
> |
8 |
> Yes because I rebooted the machine. Normally, Courier should start |
9 |
> because it's activated using rc-update but it simply doesn't. |
10 |
> Perhaps I should mention that courier-authlib runs without problems. |
11 |
> |
12 |
> |
13 |
Then - taking into account the following about the logs - it may be a |
14 |
permission issue. |
15 |
Check the user authlib and courier-imap run as, and whether it looks |
16 |
like this has changed. |
17 |
Also check the auth log for info on this. |
18 |
>>> A /etc/init.d/courier-imapd restart simply fails. |
19 |
>>> |
20 |
>>> |
21 |
>> Fails how - what is in the system and mail logs ? |
22 |
>> |
23 |
> |
24 |
> www ~ # /etc/init.d/courier-imapd start |
25 |
> * Starting courier-imapd ... |
26 |
> [ !! ] |
27 |
> www ~ # tail -n 100 /var/log/mail/current | grep courier |
28 |
> www ~ # tail -n 100 /var/log/everything/current | grep courier |
29 |
> www ~ # |
30 |
> |
31 |
> As you can see, none of these two logfiles contains anything regarding |
32 |
> Courier. |
33 |
> |
34 |
> |
35 |
>>> I can run the server manually by issuing the following: |
36 |
>>> /usr/lib/courier-imap/couriertcpd -address=0 |
37 |
>>> -stderrlogger=/usr/lib/courier-imap/courierlogger |
38 |
>>> -stderrloggername=imapd -maxprocs=40 -maxperip=10 |
39 |
>>> -pid=/var/run/imapd.pid -nodnslookup -noidentlookup 143 |
40 |
>>> /usr/sbin/imaplogin /usr/sbin/courier-imapd .Maildir |
41 |
>>> |
42 |
>>> |
43 |
>> Have you compared this cmdline with the one run by the initscript ? |
44 |
>> |
45 |
> |
46 |
> This is the cmdline which is run by the initscript. I added a "set -x" |
47 |
> on top of /usr/lib/courier-imap/gentoo-imapd.rc trying to debug this |
48 |
> script. That way I got this command. |
49 |
> |
50 |
> This is exactly why I'm so stuck about this. The initscript should run |
51 |
> this line and apparently it does but the imapd doesn't start, at least |
52 |
> when invoked by the initscript. In a regular shell I can run it without |
53 |
> problems as I stated above. |
54 |
> |
55 |
> |
56 |
> Christian |
57 |
> |
58 |
|
59 |
-- |
60 |
gentoo-server@g.o mailing list |