diff options
author | Raphaël Marichez <falco@gentoo.org> | 2008-03-17 18:43:22 +0000 |
---|---|---|
committer | Raphaël Marichez <falco@gentoo.org> | 2008-03-17 18:43:22 +0000 |
commit | 5128add96b2394f15e2cdbd9059ef174aa9c31e0 (patch) | |
tree | ccc6f852cdf226d127bced3eae2ae6c07d4379d9 /mail-mta/postfix/files | |
parent | stable x86, bug 213605 (diff) | |
download | gentoo-2-5128add96b2394f15e2cdbd9059ef174aa9c31e0.tar.gz gentoo-2-5128add96b2394f15e2cdbd9059ef174aa9c31e0.tar.bz2 gentoo-2-5128add96b2394f15e2cdbd9059ef174aa9c31e0.zip |
Version bump and new rc script, bug 207807 and bug 166872
(Portage version: 2.1.4.4)
Diffstat (limited to 'mail-mta/postfix/files')
-rw-r--r-- | mail-mta/postfix/files/postfix.rc6.2.5 | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/mail-mta/postfix/files/postfix.rc6.2.5 b/mail-mta/postfix/files/postfix.rc6.2.5 new file mode 100644 index 000000000000..8814e225167b --- /dev/null +++ b/mail-mta/postfix/files/postfix.rc6.2.5 @@ -0,0 +1,48 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/files/postfix.rc6.2.5,v 1.1 2008/03/17 18:43:22 falco Exp $ + +# If you plan to simultaneously use several Postfix instances, don't forget +# to specify your alternate_config_directories variable in your main main.cf file. +# Then make a symlink from /etc/init.d/postfix to /etc/init.d/postfix.alt, +# prepare your new /etc/postfix.alt environment, and at least change these working paths: +# queue_directory = /var/spool/postfix.alt +# data_directory = /var/lib/postfix.alt + +CONF_DIR="/etc/postfix" +CONF_OPT="${SVCNAME##*.}" +if [[ -n ${CONF_OPT} && ${SVCNAME} != "postfix" ]]; then + CONF_DIR="${CONF_DIR}.${CONF_OPT}" +fi + +opts="${opts} reload" + +depend() { + use logger dns ypbind amavisd mysql postgresql antivirus postfix_greylist net saslauthd + if [ "${SVCNAME}" == "postfix" ]; then + provide mta + fi +} + +start() { + ebegin "Starting postfix (${CONF_DIR})" + if [ ! -d ${CONF_DIR} ]; then + eend 1 "${CONF_DIR} does not exist" + return 1 + fi + /usr/sbin/postfix -c ${CONF_DIR} start &>/dev/null + eend $? +} + +stop() { + ebegin "Stopping postfix (${CONF_DIR})" + /usr/sbin/postfix -c ${CONF_DIR} stop >/dev/null 2>&1 + eend $? +} + +reload() { + ebegin "Reloading postfix (${CONF_DIR})" + /usr/sbin/postfix -c ${CONF_DIR} reload >/dev/null 2>&1 + eend $? +} |