Gentoo Archives: gentoo-user

From: Daniel Iliev <danny@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] courier-imap not starting!
Date: Mon, 14 Aug 2006 10:11:51
Message-Id: 44E04ADA.9070400@ilievnet.com
In Reply to: [gentoo-user] courier-imap not starting! by Martin Richardson
1 Martin Richardson wrote:
2 > G'Dayy all,
3 > after an upgrade of baselayout, I noticed that courier-imap and
4 > courier-imap-ssl was not starting from the init script. I have tracked it down to
5 > the init script, as this script points to
6 > /usr/lib/courier-imap/gentoo-courier-imap.rc, and I can start courier-imap directly
7 > from this script but not the init script... Has anyone had this problem, or even
8 > have a solution.
9 > Thankyou.
10 >
11 Absolutely the same situation here.
12 I use "quick & dirty" workaround. I removed the /etc/init.d/ script so
13 it would be added next time there is an update and did:
14 echo '/scripts/imap.sh start' >> /etc/conf.d/local.start
15 echo '/scripts/imap.sh stop' >> /etc/conf.d/local.stop
16
17 The imap.sh reads:
18
19 #!/bin/bash
20 #courier-imapd-ssl temporary replacement
21
22 stop(){
23 source /etc/courier-imap/imapd-ssl
24 echo "Stopping courier-imapd over SSL"
25 kill -TERM `cat $SSLPIDFILE`
26 }
27 start(){
28 source /etc/courier-imap/imapd-ssl
29 echo "Starting courier-imapd over SSL"
30 exec env - /usr/lib/courier-imap/gentoo-imapd-ssl.rc
31 --pid=$SSLPIDFILE
32 }
33 restart(){
34 stop
35 start
36 }
37 $1
38 #EOF
39
40
41
42 --
43 Best regards,
44 Daniel
45
46
47 --
48 gentoo-user@g.o mailing list