Lines 3-21
Link Here
|
3 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# Distributed under the terms of the GNU General Public License v2 |
4 |
# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/files/postfix.rc6.2.5,v 1.3 2008/08/18 14:18:40 falco Exp $ |
4 |
# $Header: /var/cvsroot/gentoo-x86/mail-mta/postfix/files/postfix.rc6.2.5,v 1.3 2008/08/18 14:18:40 falco Exp $ |
5 |
|
5 |
|
6 |
# If you plan to simultaneously use several Postfix instances, don't forget |
|
|
7 |
# to specify your alternate_config_directories variable in your main main.cf file. |
8 |
# Then make a symlink from /etc/init.d/postfix to /etc/init.d/postfix.alt, |
9 |
# prepare your new /etc/postfix.alt environment, and at least change these working paths: |
10 |
# queue_directory = /var/spool/postfix.alt |
11 |
# data_directory = /var/lib/postfix.alt |
12 |
|
13 |
CONF_DIR="/etc/postfix" |
14 |
CONF_OPT="${SVCNAME##*.}" |
15 |
if [ -n ${CONF_OPT} -a ${SVCNAME} != "postfix" ]; then |
16 |
CONF_DIR="${CONF_DIR}.${CONF_OPT}" |
17 |
fi |
18 |
|
19 |
opts="${opts} reload" |
6 |
opts="${opts} reload" |
20 |
|
7 |
|
21 |
depend() { |
8 |
depend() { |
Lines 26-48
Link Here
|
26 |
} |
13 |
} |
27 |
|
14 |
|
28 |
start() { |
15 |
start() { |
29 |
ebegin "Starting postfix (${CONF_DIR})" |
16 |
ebegin "Starting postfix..." |
30 |
if [ ! -d ${CONF_DIR} ]; then |
17 |
/usr/sbin/postfix start >/dev/null 2>&1 |
31 |
eend 1 "${CONF_DIR} does not exist" |
|
|
32 |
return 1 |
33 |
fi |
34 |
/usr/sbin/postfix -c ${CONF_DIR} start >/dev/null 2>&1 |
35 |
eend $? |
18 |
eend $? |
36 |
} |
19 |
} |
37 |
|
20 |
|
38 |
stop() { |
21 |
stop() { |
39 |
ebegin "Stopping postfix (${CONF_DIR})" |
22 |
ebegin "Stopping postfix..." |
40 |
/usr/sbin/postfix -c ${CONF_DIR} stop >/dev/null 2>&1 |
23 |
/usr/sbin/postfix stop >/dev/null 2>&1 |
41 |
eend $? |
24 |
eend $? |
42 |
} |
25 |
} |
43 |
|
26 |
|
44 |
reload() { |
27 |
reload() { |
45 |
ebegin "Reloading postfix (${CONF_DIR})" |
28 |
ebegin "Reloading postfix..." |
46 |
/usr/sbin/postfix -c ${CONF_DIR} reload >/dev/null 2>&1 |
29 |
/usr/sbin/postfix reload >/dev/null 2>&1 |
47 |
eend $? |
30 |
eend $? |
48 |
} |
31 |
} |