diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2015-07-28 16:13:16 +0300 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2015-07-29 06:30:16 +0000 |
commit | 62e496a8556428148ee596bd01b5fa8ac1a45903 (patch) | |
tree | 6f8b54b8abc689f3680fed3ebc30634ee5f2eea1 /main/dovecot/dovecot.initd | |
parent | 4b68d50b717b4442c3f96702d2b5a235899a2826 (diff) | |
download | aports-62e496a8556428148ee596bd01b5fa8ac1a45903.tar.bz2 aports-62e496a8556428148ee596bd01b5fa8ac1a45903.tar.xz |
main/dovecot: Some cleanups in init & logrotate scripts
Diffstat (limited to 'main/dovecot/dovecot.initd')
-rw-r--r-- | main/dovecot/dovecot.initd | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/main/dovecot/dovecot.initd b/main/dovecot/dovecot.initd index 9a04c83c98..646f80a945 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 $? } |