* [gentoo-commits] gentoo-x86 commit in net-mail/dovecot/files: dovecot.init-r2
@ 2008-11-03 17:22 Wolfram Schlich (wschlich)
0 siblings, 0 replies; 3+ messages in thread
From: Wolfram Schlich (wschlich) @ 2008-11-03 17:22 UTC (permalink / raw
To: gentoo-commits
wschlich 08/11/03 17:22:59
Added: dovecot.init-r2
Log:
fix bugs #245287 and #245316
(Portage version: 2.2_rc8/cvs/Linux 2.6.24-gentoo-r5-1 i686)
Revision Changes Path
1.1 net-mail/dovecot/files/dovecot.init-r2
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/dovecot/files/dovecot.init-r2?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/dovecot/files/dovecot.init-r2?rev=1.1&content-type=text/plain
Index: dovecot.init-r2
===================================================================
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/files/dovecot.init-r2,v 1.1 2008/11/03 17:22:59 wschlich Exp $
opts="reload"
depend() {
need localmount net
after bootmisc ldap mysql ntp-client ntpd postgresql saslauthd slapd
use logger
}
checkconfig() {
DOVECOT_INSTANCE=${SVCNAME##*.}
if [ -n "${DOVECOT_INSTANCE}" -a "${SVCNAME}" != "dovecot" ]; then
DOVECOT_CONF=/etc/dovecot/dovecot.${DOVECOT_INSTANCE}.conf
else
DOVECOT_CONF=/etc/dovecot/dovecot.conf
fi
if [ ! -e ${DOVECOT_CONF} ]; then
eerror "You will need an ${DOVECOT_CONF} first"
return 1
fi
DOVECOT_BASEDIR=$(/usr/sbin/dovecot -c ${DOVECOT_CONF} -a | sed -ne '/^base_dir/{s#^base_dir:[[:space:]]*\(.*[^/]\)/\?$#\1#;p}')
DOVECOT_BASEDIR=${DOVECOT_BASEDIR:-/var/run/dovecot}
DOVECOT_PIDFILE=${DOVECOT_BASEDIR}/master.pid
if [ ! -d "${DOVECOT_BASEDIR}" ]; then
ebegin "Creating missing base_dir ${DOVECOT_BASEDIR}"
install -d -o root -g root -m 0755 "${DOVECOT_BASEDIR}"
eend $?
fi
}
start() {
checkconfig || return 1
ebegin "Starting ${SVCNAME}"
start-stop-daemon --start --exec /usr/sbin/dovecot \
--pidfile "${DOVECOT_PIDFILE}" -- -c "${DOVECOT_CONF}"
eend $?
}
stop() {
checkconfig || return 1
ebegin "Stopping ${SVCNAME}"
start-stop-daemon --stop --exec /usr/sbin/dovecot \
--pidfile "${DOVECOT_PIDFILE}"
eend $?
}
reload() {
checkconfig || return 1
ebegin "Reloading ${SVCNAME} configs and restarting auth/login processes"
start-stop-daemon --stop --oknodo --exec /usr/sbin/dovecot \
--pidfile "${DOVECOT_PIDFILE}" --signal HUP
eend $?
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* [gentoo-commits] gentoo-x86 commit in net-mail/dovecot/files: dovecot.init-r2
@ 2009-09-10 17:24 Patrick Lauer (patrick)
0 siblings, 0 replies; 3+ messages in thread
From: Patrick Lauer (patrick) @ 2009-09-10 17:24 UTC (permalink / raw
To: gentoo-commits
patrick 09/09/10 17:24:33
Modified: dovecot.init-r2
Log:
Fixing init script ordering to avoid postfix/sasl failure, fixes #239535
(Portage version: 2.2_rc40/cvs/Linux x86_64)
Revision Changes Path
1.2 net-mail/dovecot/files/dovecot.init-r2
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/dovecot/files/dovecot.init-r2?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/dovecot/files/dovecot.init-r2?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/dovecot/files/dovecot.init-r2?r1=1.1&r2=1.2
Index: dovecot.init-r2
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-mail/dovecot/files/dovecot.init-r2,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- dovecot.init-r2 3 Nov 2008 17:22:59 -0000 1.1
+++ dovecot.init-r2 10 Sep 2009 17:24:33 -0000 1.2
@@ -1,12 +1,13 @@
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/files/dovecot.init-r2,v 1.1 2008/11/03 17:22:59 wschlich Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/files/dovecot.init-r2,v 1.2 2009/09/10 17:24:33 patrick Exp $
opts="reload"
depend() {
need localmount net
+ before postfix
after bootmisc ldap mysql ntp-client ntpd postgresql saslauthd slapd
use logger
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* [gentoo-commits] gentoo-x86 commit in net-mail/dovecot/files: dovecot.init-r2
@ 2010-05-19 13:26 Patrick Lauer (patrick)
0 siblings, 0 replies; 3+ messages in thread
From: Patrick Lauer (patrick) @ 2010-05-19 13:26 UTC (permalink / raw
To: gentoo-commits
patrick 10/05/19 13:26:56
Modified: dovecot.init-r2
Log:
Bump of 2.0beta, thanks to Eray Aslan
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Revision Changes Path
1.3 net-mail/dovecot/files/dovecot.init-r2
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/dovecot/files/dovecot.init-r2?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/dovecot/files/dovecot.init-r2?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/dovecot/files/dovecot.init-r2?r1=1.2&r2=1.3
Index: dovecot.init-r2
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-mail/dovecot/files/dovecot.init-r2,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- dovecot.init-r2 10 Sep 2009 17:24:33 -0000 1.2
+++ dovecot.init-r2 19 May 2010 13:26:56 -0000 1.3
@@ -1,9 +1,9 @@
#!/sbin/runscript
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/files/dovecot.init-r2,v 1.2 2009/09/10 17:24:33 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/dovecot/files/dovecot.init-r2,v 1.3 2010/05/19 13:26:56 patrick Exp $
-opts="reload"
+opts="${opts} reload"
depend() {
need localmount net
@@ -23,14 +23,14 @@
eerror "You will need an ${DOVECOT_CONF} first"
return 1
fi
- DOVECOT_BASEDIR=$(/usr/sbin/dovecot -c ${DOVECOT_CONF} -a | sed -ne '/^base_dir/{s#^base_dir:[[:space:]]*\(.*[^/]\)/\?$#\1#;p}')
+ if [ -x /usr/sbin/dovecot ]; then
+ DOVECOT_BASEDIR=$(/usr/sbin/dovecot -c ${DOVECOT_CONF} -a | grep '^base_dir = ' | sed 's/^base_dir = //')
+ else
+ eerror "dovecot not executable"
+ return 1
+ fi
DOVECOT_BASEDIR=${DOVECOT_BASEDIR:-/var/run/dovecot}
DOVECOT_PIDFILE=${DOVECOT_BASEDIR}/master.pid
- if [ ! -d "${DOVECOT_BASEDIR}" ]; then
- ebegin "Creating missing base_dir ${DOVECOT_BASEDIR}"
- install -d -o root -g root -m 0755 "${DOVECOT_BASEDIR}"
- eend $?
- fi
}
start() {
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-05-19 13:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-10 17:24 [gentoo-commits] gentoo-x86 commit in net-mail/dovecot/files: dovecot.init-r2 Patrick Lauer (patrick)
-- strict thread matches above, loose matches on Subject: below --
2010-05-19 13:26 Patrick Lauer (patrick)
2008-11-03 17:22 Wolfram Schlich (wschlich)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox