From 62e496a8556428148ee596bd01b5fa8ac1a45903 Mon Sep 17 00:00:00 2001 From: Valery Kartel Date: Tue, 28 Jul 2015 16:13:16 +0300 Subject: main/dovecot: Some cleanups in init & logrotate scripts --- main/dovecot/dovecot.initd | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'main/dovecot/dovecot.initd') diff --git a/main/dovecot/dovecot.initd b/main/dovecot/dovecot.initd index 9a04c83c981..646f80a9455 100644 --- a/main/dovecot/dovecot.initd +++ b/main/dovecot/dovecot.initd @@ -1,15 +1,11 @@ #!/sbin/openrc-run -# Copyright 1999-2011 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-r3,v 1.1 2011/09/17 10:33:38 eras Exp $ extra_started_commands="reload" depend() { need localmount net - before postfix - after bootmisc firewall ldap mysql ntp-client ntpd postgresql \ - saslauthd slapd + before exim postfix + after bootmisc firewall ldap mysql ntp-client ntpd postgresql saslauthd slapd use logger } @@ -37,23 +33,20 @@ checkconfig() { start() { checkconfig || return 1 ebegin "Starting ${SVCNAME}" - start-stop-daemon --start --exec /usr/sbin/dovecot \ - --pidfile "${DOVECOT_PIDFILE}" -- -c "${DOVECOT_CONF}" + 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}" + 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 --signal HUP --exec /usr/sbin/dovecot \ - --pidfile "${DOVECOT_PIDFILE}" + start-stop-daemon --signal HUP --exec /usr/sbin/dovecot --pidfile "${DOVECOT_PIDFILE}" eend $? } -- cgit v1.2.3