postfix/postfix-etc-init.d-postfix

161 lines
3.5 KiB
Plaintext
Raw Normal View History

#!/bin/bash
auto-import changelog data from postfix-1.1.7-1.src.rpm Mon Apr 08 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.7-1 - 1.1.7, fixes 2 critical bugs - Make sure there's a resolv.conf in the chroot jail Wed Mar 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-3 - Add Provides: lines for alternatives stuff (#60879) Tue Mar 26 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.5-2 - rebuild Tue Mar 26 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-1 - 1.1.5 (bugfix release) - Rebuild with current db Thu Mar 14 2002 Bill Nottingham <notting@redhat.com> 1.1.4-3 - remove db trigger, it's both dangerous and pointless - clean up other triggers a little Wed Mar 13 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-2 - Some trigger tweaks to make absolutely sure /etc/services is in the chroot jail Mon Mar 11 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-1 - 1.1.4 - TLS 0.8.4 - Move postalias run from %post to init script to work around anaconda being broken. Fri Mar 08 2002 Bill Nottingham <notting@redhat.com> 1.1.3-5 - use alternatives --initscript support Thu Feb 28 2002 Bill Nottingham <notting@redhat.com> 1.1.3-4 - run alternatives --remove in %preun - add various prereqs Thu Feb 28 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.3-3 - adjust the default postfix-files config file to match the alternatives setup by altering the arguments passed to post-install in the %install phase (otherwise, it might point to sendmail's binaries, breaking it rather rudely) - adjust the post-install script so that it silently uses paths which have been modified for use with alternatives, for upgrade cases where the postfix-files configuration file isn't overwritten - don't forcefully strip files -- that's a build root policy - remove hard requirement on openldap, library dependencies take care of it - redirect %postun to /dev/null - don't remove the postfix user and group when the package is removed Wed Feb 20 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-2 - listen on 127.0.0.1 only by default (#60071) - Put config samples in /usr/share/doc/postfix-1.1.7 rather than /etc/postfix (#60072) - Some spec file cleanups Tue Feb 19 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-1 - 1.1.3, TLS 0.8.3 - Fix updating - Don't run the statistics cron job - remove requirement on perl Date::Calc Thu Jan 31 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-3 - Fix up alternatives stuff Wed Jan 30 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-2 - Use alternatives Sun Jan 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-1 - Initial Red Hat Linux packaging, based on spec file from Simon J Mudd <sjmudd@pobox.com> - Changes from that: - Set up chroot environment in triggers to make sure we catch glibc errata - Remove some hacks to support building on all sorts of distributions at the cost of specfile readability - Remove postdrop group on deletion
2004-09-09 10:35:48 +00:00
#
# postfix Postfix Mail Transfer Agent
#
# chkconfig: - 80 30
auto-import changelog data from postfix-1.1.7-1.src.rpm Mon Apr 08 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.7-1 - 1.1.7, fixes 2 critical bugs - Make sure there's a resolv.conf in the chroot jail Wed Mar 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-3 - Add Provides: lines for alternatives stuff (#60879) Tue Mar 26 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.5-2 - rebuild Tue Mar 26 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-1 - 1.1.5 (bugfix release) - Rebuild with current db Thu Mar 14 2002 Bill Nottingham <notting@redhat.com> 1.1.4-3 - remove db trigger, it's both dangerous and pointless - clean up other triggers a little Wed Mar 13 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-2 - Some trigger tweaks to make absolutely sure /etc/services is in the chroot jail Mon Mar 11 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-1 - 1.1.4 - TLS 0.8.4 - Move postalias run from %post to init script to work around anaconda being broken. Fri Mar 08 2002 Bill Nottingham <notting@redhat.com> 1.1.3-5 - use alternatives --initscript support Thu Feb 28 2002 Bill Nottingham <notting@redhat.com> 1.1.3-4 - run alternatives --remove in %preun - add various prereqs Thu Feb 28 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.3-3 - adjust the default postfix-files config file to match the alternatives setup by altering the arguments passed to post-install in the %install phase (otherwise, it might point to sendmail's binaries, breaking it rather rudely) - adjust the post-install script so that it silently uses paths which have been modified for use with alternatives, for upgrade cases where the postfix-files configuration file isn't overwritten - don't forcefully strip files -- that's a build root policy - remove hard requirement on openldap, library dependencies take care of it - redirect %postun to /dev/null - don't remove the postfix user and group when the package is removed Wed Feb 20 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-2 - listen on 127.0.0.1 only by default (#60071) - Put config samples in /usr/share/doc/postfix-1.1.7 rather than /etc/postfix (#60072) - Some spec file cleanups Tue Feb 19 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-1 - 1.1.3, TLS 0.8.3 - Fix updating - Don't run the statistics cron job - remove requirement on perl Date::Calc Thu Jan 31 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-3 - Fix up alternatives stuff Wed Jan 30 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-2 - Use alternatives Sun Jan 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-1 - Initial Red Hat Linux packaging, based on spec file from Simon J Mudd <sjmudd@pobox.com> - Changes from that: - Set up chroot environment in triggers to make sure we catch glibc errata - Remove some hacks to support building on all sorts of distributions at the cost of specfile readability - Remove postdrop group on deletion
2004-09-09 10:35:48 +00:00
# description: Postfix is a Mail Transport Agent, which is the program \
# that moves mail from one machine to another.
# processname: master
# pidfile: /var/spool/postfix/pid/master.pid
# config: /etc/postfix/main.cf
# config: /etc/postfix/master.cf
#
# Based on startup script from Simon J Mudd <sjmudd@pobox.com>
auto-import changelog data from postfix-1.1.7-1.src.rpm Mon Apr 08 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.7-1 - 1.1.7, fixes 2 critical bugs - Make sure there's a resolv.conf in the chroot jail Wed Mar 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-3 - Add Provides: lines for alternatives stuff (#60879) Tue Mar 26 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.5-2 - rebuild Tue Mar 26 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-1 - 1.1.5 (bugfix release) - Rebuild with current db Thu Mar 14 2002 Bill Nottingham <notting@redhat.com> 1.1.4-3 - remove db trigger, it's both dangerous and pointless - clean up other triggers a little Wed Mar 13 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-2 - Some trigger tweaks to make absolutely sure /etc/services is in the chroot jail Mon Mar 11 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-1 - 1.1.4 - TLS 0.8.4 - Move postalias run from %post to init script to work around anaconda being broken. Fri Mar 08 2002 Bill Nottingham <notting@redhat.com> 1.1.3-5 - use alternatives --initscript support Thu Feb 28 2002 Bill Nottingham <notting@redhat.com> 1.1.3-4 - run alternatives --remove in %preun - add various prereqs Thu Feb 28 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.3-3 - adjust the default postfix-files config file to match the alternatives setup by altering the arguments passed to post-install in the %install phase (otherwise, it might point to sendmail's binaries, breaking it rather rudely) - adjust the post-install script so that it silently uses paths which have been modified for use with alternatives, for upgrade cases where the postfix-files configuration file isn't overwritten - don't forcefully strip files -- that's a build root policy - remove hard requirement on openldap, library dependencies take care of it - redirect %postun to /dev/null - don't remove the postfix user and group when the package is removed Wed Feb 20 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-2 - listen on 127.0.0.1 only by default (#60071) - Put config samples in /usr/share/doc/postfix-1.1.7 rather than /etc/postfix (#60072) - Some spec file cleanups Tue Feb 19 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-1 - 1.1.3, TLS 0.8.3 - Fix updating - Don't run the statistics cron job - remove requirement on perl Date::Calc Thu Jan 31 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-3 - Fix up alternatives stuff Wed Jan 30 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-2 - Use alternatives Sun Jan 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-1 - Initial Red Hat Linux packaging, based on spec file from Simon J Mudd <sjmudd@pobox.com> - Changes from that: - Set up chroot environment in triggers to make sure we catch glibc errata - Remove some hacks to support building on all sorts of distributions at the cost of specfile readability - Remove postdrop group on deletion
2004-09-09 10:35:48 +00:00
# 25/02/99: Mostly s/sendmail/postfix/g by John A. Martin <jam@jamux.com>
# 23/11/00: Changes & suggestions by Ajay Ramaswamy <ajayr@bigfoot.com>
# 20/01/01: Changes to fall in line with RedHat 7.0 style
# 23/02/01: Fix a few untidy problems with help from Daniel Roesen.
### BEGIN INIT INFO
# Provides: postfix MTA
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Short-Description: start and stop postfix
# Description: Postfix is a Mail Transport Agent, which is the program that
# moves mail from one machine to another.
### END INIT INFO
auto-import changelog data from postfix-1.1.7-1.src.rpm Mon Apr 08 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.7-1 - 1.1.7, fixes 2 critical bugs - Make sure there's a resolv.conf in the chroot jail Wed Mar 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-3 - Add Provides: lines for alternatives stuff (#60879) Tue Mar 26 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.5-2 - rebuild Tue Mar 26 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-1 - 1.1.5 (bugfix release) - Rebuild with current db Thu Mar 14 2002 Bill Nottingham <notting@redhat.com> 1.1.4-3 - remove db trigger, it's both dangerous and pointless - clean up other triggers a little Wed Mar 13 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-2 - Some trigger tweaks to make absolutely sure /etc/services is in the chroot jail Mon Mar 11 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-1 - 1.1.4 - TLS 0.8.4 - Move postalias run from %post to init script to work around anaconda being broken. Fri Mar 08 2002 Bill Nottingham <notting@redhat.com> 1.1.3-5 - use alternatives --initscript support Thu Feb 28 2002 Bill Nottingham <notting@redhat.com> 1.1.3-4 - run alternatives --remove in %preun - add various prereqs Thu Feb 28 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.3-3 - adjust the default postfix-files config file to match the alternatives setup by altering the arguments passed to post-install in the %install phase (otherwise, it might point to sendmail's binaries, breaking it rather rudely) - adjust the post-install script so that it silently uses paths which have been modified for use with alternatives, for upgrade cases where the postfix-files configuration file isn't overwritten - don't forcefully strip files -- that's a build root policy - remove hard requirement on openldap, library dependencies take care of it - redirect %postun to /dev/null - don't remove the postfix user and group when the package is removed Wed Feb 20 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-2 - listen on 127.0.0.1 only by default (#60071) - Put config samples in /usr/share/doc/postfix-1.1.7 rather than /etc/postfix (#60072) - Some spec file cleanups Tue Feb 19 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-1 - 1.1.3, TLS 0.8.3 - Fix updating - Don't run the statistics cron job - remove requirement on perl Date::Calc Thu Jan 31 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-3 - Fix up alternatives stuff Wed Jan 30 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-2 - Use alternatives Sun Jan 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-1 - Initial Red Hat Linux packaging, based on spec file from Simon J Mudd <sjmudd@pobox.com> - Changes from that: - Set up chroot environment in triggers to make sure we catch glibc errata - Remove some hacks to support building on all sorts of distributions at the cost of specfile readability - Remove postdrop group on deletion
2004-09-09 10:35:48 +00:00
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
RETVAL=0
prog="postfix"
auto-import changelog data from postfix-1.1.7-1.src.rpm Mon Apr 08 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.7-1 - 1.1.7, fixes 2 critical bugs - Make sure there's a resolv.conf in the chroot jail Wed Mar 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-3 - Add Provides: lines for alternatives stuff (#60879) Tue Mar 26 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.5-2 - rebuild Tue Mar 26 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-1 - 1.1.5 (bugfix release) - Rebuild with current db Thu Mar 14 2002 Bill Nottingham <notting@redhat.com> 1.1.4-3 - remove db trigger, it's both dangerous and pointless - clean up other triggers a little Wed Mar 13 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-2 - Some trigger tweaks to make absolutely sure /etc/services is in the chroot jail Mon Mar 11 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-1 - 1.1.4 - TLS 0.8.4 - Move postalias run from %post to init script to work around anaconda being broken. Fri Mar 08 2002 Bill Nottingham <notting@redhat.com> 1.1.3-5 - use alternatives --initscript support Thu Feb 28 2002 Bill Nottingham <notting@redhat.com> 1.1.3-4 - run alternatives --remove in %preun - add various prereqs Thu Feb 28 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.3-3 - adjust the default postfix-files config file to match the alternatives setup by altering the arguments passed to post-install in the %install phase (otherwise, it might point to sendmail's binaries, breaking it rather rudely) - adjust the post-install script so that it silently uses paths which have been modified for use with alternatives, for upgrade cases where the postfix-files configuration file isn't overwritten - don't forcefully strip files -- that's a build root policy - remove hard requirement on openldap, library dependencies take care of it - redirect %postun to /dev/null - don't remove the postfix user and group when the package is removed Wed Feb 20 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-2 - listen on 127.0.0.1 only by default (#60071) - Put config samples in /usr/share/doc/postfix-1.1.7 rather than /etc/postfix (#60072) - Some spec file cleanups Tue Feb 19 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-1 - 1.1.3, TLS 0.8.3 - Fix updating - Don't run the statistics cron job - remove requirement on perl Date::Calc Thu Jan 31 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-3 - Fix up alternatives stuff Wed Jan 30 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-2 - Use alternatives Sun Jan 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-1 - Initial Red Hat Linux packaging, based on spec file from Simon J Mudd <sjmudd@pobox.com> - Changes from that: - Set up chroot environment in triggers to make sure we catch glibc errata - Remove some hacks to support building on all sorts of distributions at the cost of specfile readability - Remove postdrop group on deletion
2004-09-09 10:35:48 +00:00
ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp
# Script to update chroot environment
CHROOT_UPDATE=/etc/postfix/chroot-update
status master >/dev/null 2>&1
running=$?
conf_check() {
[ -x /usr/sbin/postfix ] || exit 5
[ -d /etc/postfix ] || exit 6
[ -d /var/spool/postfix ] || exit 5
}
make_aliasesdb() {
if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
then
# /etc/aliases.db may be used by other MTA, make sure nothing
# has touched it since our last newaliases call
[ /etc/aliases -nt /etc/aliases.db ] ||
[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
/usr/bin/newaliases
touch -r /etc/aliases.db "$ALIASESDB_STAMP"
else
/usr/bin/newaliases
fi
}
auto-import changelog data from postfix-1.1.7-1.src.rpm Mon Apr 08 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.7-1 - 1.1.7, fixes 2 critical bugs - Make sure there's a resolv.conf in the chroot jail Wed Mar 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-3 - Add Provides: lines for alternatives stuff (#60879) Tue Mar 26 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.5-2 - rebuild Tue Mar 26 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-1 - 1.1.5 (bugfix release) - Rebuild with current db Thu Mar 14 2002 Bill Nottingham <notting@redhat.com> 1.1.4-3 - remove db trigger, it's both dangerous and pointless - clean up other triggers a little Wed Mar 13 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-2 - Some trigger tweaks to make absolutely sure /etc/services is in the chroot jail Mon Mar 11 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-1 - 1.1.4 - TLS 0.8.4 - Move postalias run from %post to init script to work around anaconda being broken. Fri Mar 08 2002 Bill Nottingham <notting@redhat.com> 1.1.3-5 - use alternatives --initscript support Thu Feb 28 2002 Bill Nottingham <notting@redhat.com> 1.1.3-4 - run alternatives --remove in %preun - add various prereqs Thu Feb 28 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.3-3 - adjust the default postfix-files config file to match the alternatives setup by altering the arguments passed to post-install in the %install phase (otherwise, it might point to sendmail's binaries, breaking it rather rudely) - adjust the post-install script so that it silently uses paths which have been modified for use with alternatives, for upgrade cases where the postfix-files configuration file isn't overwritten - don't forcefully strip files -- that's a build root policy - remove hard requirement on openldap, library dependencies take care of it - redirect %postun to /dev/null - don't remove the postfix user and group when the package is removed Wed Feb 20 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-2 - listen on 127.0.0.1 only by default (#60071) - Put config samples in /usr/share/doc/postfix-1.1.7 rather than /etc/postfix (#60072) - Some spec file cleanups Tue Feb 19 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-1 - 1.1.3, TLS 0.8.3 - Fix updating - Don't run the statistics cron job - remove requirement on perl Date::Calc Thu Jan 31 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-3 - Fix up alternatives stuff Wed Jan 30 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-2 - Use alternatives Sun Jan 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-1 - Initial Red Hat Linux packaging, based on spec file from Simon J Mudd <sjmudd@pobox.com> - Changes from that: - Set up chroot environment in triggers to make sure we catch glibc errata - Remove some hacks to support building on all sorts of distributions at the cost of specfile readability - Remove postdrop group on deletion
2004-09-09 10:35:48 +00:00
start() {
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 1
conf_check
auto-import changelog data from postfix-1.1.7-1.src.rpm Mon Apr 08 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.7-1 - 1.1.7, fixes 2 critical bugs - Make sure there's a resolv.conf in the chroot jail Wed Mar 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-3 - Add Provides: lines for alternatives stuff (#60879) Tue Mar 26 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.5-2 - rebuild Tue Mar 26 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-1 - 1.1.5 (bugfix release) - Rebuild with current db Thu Mar 14 2002 Bill Nottingham <notting@redhat.com> 1.1.4-3 - remove db trigger, it's both dangerous and pointless - clean up other triggers a little Wed Mar 13 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-2 - Some trigger tweaks to make absolutely sure /etc/services is in the chroot jail Mon Mar 11 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-1 - 1.1.4 - TLS 0.8.4 - Move postalias run from %post to init script to work around anaconda being broken. Fri Mar 08 2002 Bill Nottingham <notting@redhat.com> 1.1.3-5 - use alternatives --initscript support Thu Feb 28 2002 Bill Nottingham <notting@redhat.com> 1.1.3-4 - run alternatives --remove in %preun - add various prereqs Thu Feb 28 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.3-3 - adjust the default postfix-files config file to match the alternatives setup by altering the arguments passed to post-install in the %install phase (otherwise, it might point to sendmail's binaries, breaking it rather rudely) - adjust the post-install script so that it silently uses paths which have been modified for use with alternatives, for upgrade cases where the postfix-files configuration file isn't overwritten - don't forcefully strip files -- that's a build root policy - remove hard requirement on openldap, library dependencies take care of it - redirect %postun to /dev/null - don't remove the postfix user and group when the package is removed Wed Feb 20 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-2 - listen on 127.0.0.1 only by default (#60071) - Put config samples in /usr/share/doc/postfix-1.1.7 rather than /etc/postfix (#60072) - Some spec file cleanups Tue Feb 19 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-1 - 1.1.3, TLS 0.8.3 - Fix updating - Don't run the statistics cron job - remove requirement on perl Date::Calc Thu Jan 31 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-3 - Fix up alternatives stuff Wed Jan 30 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-2 - Use alternatives Sun Jan 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-1 - Initial Red Hat Linux packaging, based on spec file from Simon J Mudd <sjmudd@pobox.com> - Changes from that: - Set up chroot environment in triggers to make sure we catch glibc errata - Remove some hacks to support building on all sorts of distributions at the cost of specfile readability - Remove postdrop group on deletion
2004-09-09 10:35:48 +00:00
# Start daemons.
echo -n $"Starting postfix: "
make_aliasesdb >/dev/null 2>&1
[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
/usr/sbin/postfix start 2>/dev/null 1>&2 && success || failure $"$prog start"
auto-import changelog data from postfix-1.1.7-1.src.rpm Mon Apr 08 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.7-1 - 1.1.7, fixes 2 critical bugs - Make sure there's a resolv.conf in the chroot jail Wed Mar 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-3 - Add Provides: lines for alternatives stuff (#60879) Tue Mar 26 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.5-2 - rebuild Tue Mar 26 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-1 - 1.1.5 (bugfix release) - Rebuild with current db Thu Mar 14 2002 Bill Nottingham <notting@redhat.com> 1.1.4-3 - remove db trigger, it's both dangerous and pointless - clean up other triggers a little Wed Mar 13 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-2 - Some trigger tweaks to make absolutely sure /etc/services is in the chroot jail Mon Mar 11 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-1 - 1.1.4 - TLS 0.8.4 - Move postalias run from %post to init script to work around anaconda being broken. Fri Mar 08 2002 Bill Nottingham <notting@redhat.com> 1.1.3-5 - use alternatives --initscript support Thu Feb 28 2002 Bill Nottingham <notting@redhat.com> 1.1.3-4 - run alternatives --remove in %preun - add various prereqs Thu Feb 28 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.3-3 - adjust the default postfix-files config file to match the alternatives setup by altering the arguments passed to post-install in the %install phase (otherwise, it might point to sendmail's binaries, breaking it rather rudely) - adjust the post-install script so that it silently uses paths which have been modified for use with alternatives, for upgrade cases where the postfix-files configuration file isn't overwritten - don't forcefully strip files -- that's a build root policy - remove hard requirement on openldap, library dependencies take care of it - redirect %postun to /dev/null - don't remove the postfix user and group when the package is removed Wed Feb 20 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-2 - listen on 127.0.0.1 only by default (#60071) - Put config samples in /usr/share/doc/postfix-1.1.7 rather than /etc/postfix (#60072) - Some spec file cleanups Tue Feb 19 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-1 - 1.1.3, TLS 0.8.3 - Fix updating - Don't run the statistics cron job - remove requirement on perl Date::Calc Thu Jan 31 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-3 - Fix up alternatives stuff Wed Jan 30 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-2 - Use alternatives Sun Jan 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-1 - Initial Red Hat Linux packaging, based on spec file from Simon J Mudd <sjmudd@pobox.com> - Changes from that: - Set up chroot environment in triggers to make sure we catch glibc errata - Remove some hacks to support building on all sorts of distributions at the cost of specfile readability - Remove postdrop group on deletion
2004-09-09 10:35:48 +00:00
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/postfix
echo
return $RETVAL
}
stop() {
conf_check
auto-import changelog data from postfix-1.1.7-1.src.rpm Mon Apr 08 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.7-1 - 1.1.7, fixes 2 critical bugs - Make sure there's a resolv.conf in the chroot jail Wed Mar 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-3 - Add Provides: lines for alternatives stuff (#60879) Tue Mar 26 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.5-2 - rebuild Tue Mar 26 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-1 - 1.1.5 (bugfix release) - Rebuild with current db Thu Mar 14 2002 Bill Nottingham <notting@redhat.com> 1.1.4-3 - remove db trigger, it's both dangerous and pointless - clean up other triggers a little Wed Mar 13 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-2 - Some trigger tweaks to make absolutely sure /etc/services is in the chroot jail Mon Mar 11 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-1 - 1.1.4 - TLS 0.8.4 - Move postalias run from %post to init script to work around anaconda being broken. Fri Mar 08 2002 Bill Nottingham <notting@redhat.com> 1.1.3-5 - use alternatives --initscript support Thu Feb 28 2002 Bill Nottingham <notting@redhat.com> 1.1.3-4 - run alternatives --remove in %preun - add various prereqs Thu Feb 28 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.3-3 - adjust the default postfix-files config file to match the alternatives setup by altering the arguments passed to post-install in the %install phase (otherwise, it might point to sendmail's binaries, breaking it rather rudely) - adjust the post-install script so that it silently uses paths which have been modified for use with alternatives, for upgrade cases where the postfix-files configuration file isn't overwritten - don't forcefully strip files -- that's a build root policy - remove hard requirement on openldap, library dependencies take care of it - redirect %postun to /dev/null - don't remove the postfix user and group when the package is removed Wed Feb 20 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-2 - listen on 127.0.0.1 only by default (#60071) - Put config samples in /usr/share/doc/postfix-1.1.7 rather than /etc/postfix (#60072) - Some spec file cleanups Tue Feb 19 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-1 - 1.1.3, TLS 0.8.3 - Fix updating - Don't run the statistics cron job - remove requirement on perl Date::Calc Thu Jan 31 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-3 - Fix up alternatives stuff Wed Jan 30 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-2 - Use alternatives Sun Jan 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-1 - Initial Red Hat Linux packaging, based on spec file from Simon J Mudd <sjmudd@pobox.com> - Changes from that: - Set up chroot environment in triggers to make sure we catch glibc errata - Remove some hacks to support building on all sorts of distributions at the cost of specfile readability - Remove postdrop group on deletion
2004-09-09 10:35:48 +00:00
# Stop daemons.
echo -n $"Shutting down postfix: "
/usr/sbin/postfix stop 2>/dev/null 1>&2 && success || failure $"$prog stop"
auto-import changelog data from postfix-1.1.7-1.src.rpm Mon Apr 08 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.7-1 - 1.1.7, fixes 2 critical bugs - Make sure there's a resolv.conf in the chroot jail Wed Mar 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-3 - Add Provides: lines for alternatives stuff (#60879) Tue Mar 26 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.5-2 - rebuild Tue Mar 26 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-1 - 1.1.5 (bugfix release) - Rebuild with current db Thu Mar 14 2002 Bill Nottingham <notting@redhat.com> 1.1.4-3 - remove db trigger, it's both dangerous and pointless - clean up other triggers a little Wed Mar 13 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-2 - Some trigger tweaks to make absolutely sure /etc/services is in the chroot jail Mon Mar 11 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-1 - 1.1.4 - TLS 0.8.4 - Move postalias run from %post to init script to work around anaconda being broken. Fri Mar 08 2002 Bill Nottingham <notting@redhat.com> 1.1.3-5 - use alternatives --initscript support Thu Feb 28 2002 Bill Nottingham <notting@redhat.com> 1.1.3-4 - run alternatives --remove in %preun - add various prereqs Thu Feb 28 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.3-3 - adjust the default postfix-files config file to match the alternatives setup by altering the arguments passed to post-install in the %install phase (otherwise, it might point to sendmail's binaries, breaking it rather rudely) - adjust the post-install script so that it silently uses paths which have been modified for use with alternatives, for upgrade cases where the postfix-files configuration file isn't overwritten - don't forcefully strip files -- that's a build root policy - remove hard requirement on openldap, library dependencies take care of it - redirect %postun to /dev/null - don't remove the postfix user and group when the package is removed Wed Feb 20 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-2 - listen on 127.0.0.1 only by default (#60071) - Put config samples in /usr/share/doc/postfix-1.1.7 rather than /etc/postfix (#60072) - Some spec file cleanups Tue Feb 19 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-1 - 1.1.3, TLS 0.8.3 - Fix updating - Don't run the statistics cron job - remove requirement on perl Date::Calc Thu Jan 31 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-3 - Fix up alternatives stuff Wed Jan 30 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-2 - Use alternatives Sun Jan 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-1 - Initial Red Hat Linux packaging, based on spec file from Simon J Mudd <sjmudd@pobox.com> - Changes from that: - Set up chroot environment in triggers to make sure we catch glibc errata - Remove some hacks to support building on all sorts of distributions at the cost of specfile readability - Remove postdrop group on deletion
2004-09-09 10:35:48 +00:00
RETVAL=$?
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/postfix
echo
return $RETVAL
}
reload() {
conf_check
echo -n $"Reloading postfix: "
[ -x $CHROOT_UPDATE ] && $CHROOT_UPDATE
/usr/sbin/postfix reload 2>/dev/null 1>&2 && success || failure $"$prog reload"
auto-import changelog data from postfix-1.1.7-1.src.rpm Mon Apr 08 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.7-1 - 1.1.7, fixes 2 critical bugs - Make sure there's a resolv.conf in the chroot jail Wed Mar 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-3 - Add Provides: lines for alternatives stuff (#60879) Tue Mar 26 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.5-2 - rebuild Tue Mar 26 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-1 - 1.1.5 (bugfix release) - Rebuild with current db Thu Mar 14 2002 Bill Nottingham <notting@redhat.com> 1.1.4-3 - remove db trigger, it's both dangerous and pointless - clean up other triggers a little Wed Mar 13 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-2 - Some trigger tweaks to make absolutely sure /etc/services is in the chroot jail Mon Mar 11 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-1 - 1.1.4 - TLS 0.8.4 - Move postalias run from %post to init script to work around anaconda being broken. Fri Mar 08 2002 Bill Nottingham <notting@redhat.com> 1.1.3-5 - use alternatives --initscript support Thu Feb 28 2002 Bill Nottingham <notting@redhat.com> 1.1.3-4 - run alternatives --remove in %preun - add various prereqs Thu Feb 28 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.3-3 - adjust the default postfix-files config file to match the alternatives setup by altering the arguments passed to post-install in the %install phase (otherwise, it might point to sendmail's binaries, breaking it rather rudely) - adjust the post-install script so that it silently uses paths which have been modified for use with alternatives, for upgrade cases where the postfix-files configuration file isn't overwritten - don't forcefully strip files -- that's a build root policy - remove hard requirement on openldap, library dependencies take care of it - redirect %postun to /dev/null - don't remove the postfix user and group when the package is removed Wed Feb 20 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-2 - listen on 127.0.0.1 only by default (#60071) - Put config samples in /usr/share/doc/postfix-1.1.7 rather than /etc/postfix (#60072) - Some spec file cleanups Tue Feb 19 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-1 - 1.1.3, TLS 0.8.3 - Fix updating - Don't run the statistics cron job - remove requirement on perl Date::Calc Thu Jan 31 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-3 - Fix up alternatives stuff Wed Jan 30 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-2 - Use alternatives Sun Jan 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-1 - Initial Red Hat Linux packaging, based on spec file from Simon J Mudd <sjmudd@pobox.com> - Changes from that: - Set up chroot environment in triggers to make sure we catch glibc errata - Remove some hacks to support building on all sorts of distributions at the cost of specfile readability - Remove postdrop group on deletion
2004-09-09 10:35:48 +00:00
RETVAL=$?
echo
return $RETVAL
}
abort() {
conf_check
/usr/sbin/postfix abort 2>/dev/null 1>&2 && success || failure $"$prog abort"
auto-import changelog data from postfix-1.1.7-1.src.rpm Mon Apr 08 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.7-1 - 1.1.7, fixes 2 critical bugs - Make sure there's a resolv.conf in the chroot jail Wed Mar 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-3 - Add Provides: lines for alternatives stuff (#60879) Tue Mar 26 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.5-2 - rebuild Tue Mar 26 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-1 - 1.1.5 (bugfix release) - Rebuild with current db Thu Mar 14 2002 Bill Nottingham <notting@redhat.com> 1.1.4-3 - remove db trigger, it's both dangerous and pointless - clean up other triggers a little Wed Mar 13 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-2 - Some trigger tweaks to make absolutely sure /etc/services is in the chroot jail Mon Mar 11 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-1 - 1.1.4 - TLS 0.8.4 - Move postalias run from %post to init script to work around anaconda being broken. Fri Mar 08 2002 Bill Nottingham <notting@redhat.com> 1.1.3-5 - use alternatives --initscript support Thu Feb 28 2002 Bill Nottingham <notting@redhat.com> 1.1.3-4 - run alternatives --remove in %preun - add various prereqs Thu Feb 28 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.3-3 - adjust the default postfix-files config file to match the alternatives setup by altering the arguments passed to post-install in the %install phase (otherwise, it might point to sendmail's binaries, breaking it rather rudely) - adjust the post-install script so that it silently uses paths which have been modified for use with alternatives, for upgrade cases where the postfix-files configuration file isn't overwritten - don't forcefully strip files -- that's a build root policy - remove hard requirement on openldap, library dependencies take care of it - redirect %postun to /dev/null - don't remove the postfix user and group when the package is removed Wed Feb 20 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-2 - listen on 127.0.0.1 only by default (#60071) - Put config samples in /usr/share/doc/postfix-1.1.7 rather than /etc/postfix (#60072) - Some spec file cleanups Tue Feb 19 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-1 - 1.1.3, TLS 0.8.3 - Fix updating - Don't run the statistics cron job - remove requirement on perl Date::Calc Thu Jan 31 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-3 - Fix up alternatives stuff Wed Jan 30 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-2 - Use alternatives Sun Jan 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-1 - Initial Red Hat Linux packaging, based on spec file from Simon J Mudd <sjmudd@pobox.com> - Changes from that: - Set up chroot environment in triggers to make sure we catch glibc errata - Remove some hacks to support building on all sorts of distributions at the cost of specfile readability - Remove postdrop group on deletion
2004-09-09 10:35:48 +00:00
return $?
}
flush() {
conf_check
/usr/sbin/postfix flush 2>/dev/null 1>&2 && success || failure $"$prog flush"
auto-import changelog data from postfix-1.1.7-1.src.rpm Mon Apr 08 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.7-1 - 1.1.7, fixes 2 critical bugs - Make sure there's a resolv.conf in the chroot jail Wed Mar 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-3 - Add Provides: lines for alternatives stuff (#60879) Tue Mar 26 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.5-2 - rebuild Tue Mar 26 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-1 - 1.1.5 (bugfix release) - Rebuild with current db Thu Mar 14 2002 Bill Nottingham <notting@redhat.com> 1.1.4-3 - remove db trigger, it's both dangerous and pointless - clean up other triggers a little Wed Mar 13 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-2 - Some trigger tweaks to make absolutely sure /etc/services is in the chroot jail Mon Mar 11 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-1 - 1.1.4 - TLS 0.8.4 - Move postalias run from %post to init script to work around anaconda being broken. Fri Mar 08 2002 Bill Nottingham <notting@redhat.com> 1.1.3-5 - use alternatives --initscript support Thu Feb 28 2002 Bill Nottingham <notting@redhat.com> 1.1.3-4 - run alternatives --remove in %preun - add various prereqs Thu Feb 28 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.3-3 - adjust the default postfix-files config file to match the alternatives setup by altering the arguments passed to post-install in the %install phase (otherwise, it might point to sendmail's binaries, breaking it rather rudely) - adjust the post-install script so that it silently uses paths which have been modified for use with alternatives, for upgrade cases where the postfix-files configuration file isn't overwritten - don't forcefully strip files -- that's a build root policy - remove hard requirement on openldap, library dependencies take care of it - redirect %postun to /dev/null - don't remove the postfix user and group when the package is removed Wed Feb 20 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-2 - listen on 127.0.0.1 only by default (#60071) - Put config samples in /usr/share/doc/postfix-1.1.7 rather than /etc/postfix (#60072) - Some spec file cleanups Tue Feb 19 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-1 - 1.1.3, TLS 0.8.3 - Fix updating - Don't run the statistics cron job - remove requirement on perl Date::Calc Thu Jan 31 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-3 - Fix up alternatives stuff Wed Jan 30 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-2 - Use alternatives Sun Jan 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-1 - Initial Red Hat Linux packaging, based on spec file from Simon J Mudd <sjmudd@pobox.com> - Changes from that: - Set up chroot environment in triggers to make sure we catch glibc errata - Remove some hacks to support building on all sorts of distributions at the cost of specfile readability - Remove postdrop group on deletion
2004-09-09 10:35:48 +00:00
return $?
}
check() {
conf_check
/usr/sbin/postfix check 2>/dev/null 1>&2 && success || failure $"$prog check"
auto-import changelog data from postfix-1.1.7-1.src.rpm Mon Apr 08 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.7-1 - 1.1.7, fixes 2 critical bugs - Make sure there's a resolv.conf in the chroot jail Wed Mar 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-3 - Add Provides: lines for alternatives stuff (#60879) Tue Mar 26 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.5-2 - rebuild Tue Mar 26 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-1 - 1.1.5 (bugfix release) - Rebuild with current db Thu Mar 14 2002 Bill Nottingham <notting@redhat.com> 1.1.4-3 - remove db trigger, it's both dangerous and pointless - clean up other triggers a little Wed Mar 13 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-2 - Some trigger tweaks to make absolutely sure /etc/services is in the chroot jail Mon Mar 11 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-1 - 1.1.4 - TLS 0.8.4 - Move postalias run from %post to init script to work around anaconda being broken. Fri Mar 08 2002 Bill Nottingham <notting@redhat.com> 1.1.3-5 - use alternatives --initscript support Thu Feb 28 2002 Bill Nottingham <notting@redhat.com> 1.1.3-4 - run alternatives --remove in %preun - add various prereqs Thu Feb 28 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.3-3 - adjust the default postfix-files config file to match the alternatives setup by altering the arguments passed to post-install in the %install phase (otherwise, it might point to sendmail's binaries, breaking it rather rudely) - adjust the post-install script so that it silently uses paths which have been modified for use with alternatives, for upgrade cases where the postfix-files configuration file isn't overwritten - don't forcefully strip files -- that's a build root policy - remove hard requirement on openldap, library dependencies take care of it - redirect %postun to /dev/null - don't remove the postfix user and group when the package is removed Wed Feb 20 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-2 - listen on 127.0.0.1 only by default (#60071) - Put config samples in /usr/share/doc/postfix-1.1.7 rather than /etc/postfix (#60072) - Some spec file cleanups Tue Feb 19 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-1 - 1.1.3, TLS 0.8.3 - Fix updating - Don't run the statistics cron job - remove requirement on perl Date::Calc Thu Jan 31 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-3 - Fix up alternatives stuff Wed Jan 30 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-2 - Use alternatives Sun Jan 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-1 - Initial Red Hat Linux packaging, based on spec file from Simon J Mudd <sjmudd@pobox.com> - Changes from that: - Set up chroot environment in triggers to make sure we catch glibc errata - Remove some hacks to support building on all sorts of distributions at the cost of specfile readability - Remove postdrop group on deletion
2004-09-09 10:35:48 +00:00
return $?
}
# See how we were called.
case "$1" in
start)
[ $running -eq 0 ] && exit 0
auto-import changelog data from postfix-1.1.7-1.src.rpm Mon Apr 08 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.7-1 - 1.1.7, fixes 2 critical bugs - Make sure there's a resolv.conf in the chroot jail Wed Mar 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-3 - Add Provides: lines for alternatives stuff (#60879) Tue Mar 26 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.5-2 - rebuild Tue Mar 26 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-1 - 1.1.5 (bugfix release) - Rebuild with current db Thu Mar 14 2002 Bill Nottingham <notting@redhat.com> 1.1.4-3 - remove db trigger, it's both dangerous and pointless - clean up other triggers a little Wed Mar 13 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-2 - Some trigger tweaks to make absolutely sure /etc/services is in the chroot jail Mon Mar 11 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-1 - 1.1.4 - TLS 0.8.4 - Move postalias run from %post to init script to work around anaconda being broken. Fri Mar 08 2002 Bill Nottingham <notting@redhat.com> 1.1.3-5 - use alternatives --initscript support Thu Feb 28 2002 Bill Nottingham <notting@redhat.com> 1.1.3-4 - run alternatives --remove in %preun - add various prereqs Thu Feb 28 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.3-3 - adjust the default postfix-files config file to match the alternatives setup by altering the arguments passed to post-install in the %install phase (otherwise, it might point to sendmail's binaries, breaking it rather rudely) - adjust the post-install script so that it silently uses paths which have been modified for use with alternatives, for upgrade cases where the postfix-files configuration file isn't overwritten - don't forcefully strip files -- that's a build root policy - remove hard requirement on openldap, library dependencies take care of it - redirect %postun to /dev/null - don't remove the postfix user and group when the package is removed Wed Feb 20 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-2 - listen on 127.0.0.1 only by default (#60071) - Put config samples in /usr/share/doc/postfix-1.1.7 rather than /etc/postfix (#60072) - Some spec file cleanups Tue Feb 19 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-1 - 1.1.3, TLS 0.8.3 - Fix updating - Don't run the statistics cron job - remove requirement on perl Date::Calc Thu Jan 31 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-3 - Fix up alternatives stuff Wed Jan 30 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-2 - Use alternatives Sun Jan 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-1 - Initial Red Hat Linux packaging, based on spec file from Simon J Mudd <sjmudd@pobox.com> - Changes from that: - Set up chroot environment in triggers to make sure we catch glibc errata - Remove some hacks to support building on all sorts of distributions at the cost of specfile readability - Remove postdrop group on deletion
2004-09-09 10:35:48 +00:00
start
;;
stop)
[ $running -eq 0 ] || exit 0
auto-import changelog data from postfix-1.1.7-1.src.rpm Mon Apr 08 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.7-1 - 1.1.7, fixes 2 critical bugs - Make sure there's a resolv.conf in the chroot jail Wed Mar 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-3 - Add Provides: lines for alternatives stuff (#60879) Tue Mar 26 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.5-2 - rebuild Tue Mar 26 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-1 - 1.1.5 (bugfix release) - Rebuild with current db Thu Mar 14 2002 Bill Nottingham <notting@redhat.com> 1.1.4-3 - remove db trigger, it's both dangerous and pointless - clean up other triggers a little Wed Mar 13 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-2 - Some trigger tweaks to make absolutely sure /etc/services is in the chroot jail Mon Mar 11 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-1 - 1.1.4 - TLS 0.8.4 - Move postalias run from %post to init script to work around anaconda being broken. Fri Mar 08 2002 Bill Nottingham <notting@redhat.com> 1.1.3-5 - use alternatives --initscript support Thu Feb 28 2002 Bill Nottingham <notting@redhat.com> 1.1.3-4 - run alternatives --remove in %preun - add various prereqs Thu Feb 28 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.3-3 - adjust the default postfix-files config file to match the alternatives setup by altering the arguments passed to post-install in the %install phase (otherwise, it might point to sendmail's binaries, breaking it rather rudely) - adjust the post-install script so that it silently uses paths which have been modified for use with alternatives, for upgrade cases where the postfix-files configuration file isn't overwritten - don't forcefully strip files -- that's a build root policy - remove hard requirement on openldap, library dependencies take care of it - redirect %postun to /dev/null - don't remove the postfix user and group when the package is removed Wed Feb 20 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-2 - listen on 127.0.0.1 only by default (#60071) - Put config samples in /usr/share/doc/postfix-1.1.7 rather than /etc/postfix (#60072) - Some spec file cleanups Tue Feb 19 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-1 - 1.1.3, TLS 0.8.3 - Fix updating - Don't run the statistics cron job - remove requirement on perl Date::Calc Thu Jan 31 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-3 - Fix up alternatives stuff Wed Jan 30 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-2 - Use alternatives Sun Jan 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-1 - Initial Red Hat Linux packaging, based on spec file from Simon J Mudd <sjmudd@pobox.com> - Changes from that: - Set up chroot environment in triggers to make sure we catch glibc errata - Remove some hacks to support building on all sorts of distributions at the cost of specfile readability - Remove postdrop group on deletion
2004-09-09 10:35:48 +00:00
stop
;;
restart|force-reload)
auto-import changelog data from postfix-1.1.7-1.src.rpm Mon Apr 08 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.7-1 - 1.1.7, fixes 2 critical bugs - Make sure there's a resolv.conf in the chroot jail Wed Mar 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-3 - Add Provides: lines for alternatives stuff (#60879) Tue Mar 26 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.5-2 - rebuild Tue Mar 26 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-1 - 1.1.5 (bugfix release) - Rebuild with current db Thu Mar 14 2002 Bill Nottingham <notting@redhat.com> 1.1.4-3 - remove db trigger, it's both dangerous and pointless - clean up other triggers a little Wed Mar 13 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-2 - Some trigger tweaks to make absolutely sure /etc/services is in the chroot jail Mon Mar 11 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-1 - 1.1.4 - TLS 0.8.4 - Move postalias run from %post to init script to work around anaconda being broken. Fri Mar 08 2002 Bill Nottingham <notting@redhat.com> 1.1.3-5 - use alternatives --initscript support Thu Feb 28 2002 Bill Nottingham <notting@redhat.com> 1.1.3-4 - run alternatives --remove in %preun - add various prereqs Thu Feb 28 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.3-3 - adjust the default postfix-files config file to match the alternatives setup by altering the arguments passed to post-install in the %install phase (otherwise, it might point to sendmail's binaries, breaking it rather rudely) - adjust the post-install script so that it silently uses paths which have been modified for use with alternatives, for upgrade cases where the postfix-files configuration file isn't overwritten - don't forcefully strip files -- that's a build root policy - remove hard requirement on openldap, library dependencies take care of it - redirect %postun to /dev/null - don't remove the postfix user and group when the package is removed Wed Feb 20 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-2 - listen on 127.0.0.1 only by default (#60071) - Put config samples in /usr/share/doc/postfix-1.1.7 rather than /etc/postfix (#60072) - Some spec file cleanups Tue Feb 19 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-1 - 1.1.3, TLS 0.8.3 - Fix updating - Don't run the statistics cron job - remove requirement on perl Date::Calc Thu Jan 31 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-3 - Fix up alternatives stuff Wed Jan 30 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-2 - Use alternatives Sun Jan 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-1 - Initial Red Hat Linux packaging, based on spec file from Simon J Mudd <sjmudd@pobox.com> - Changes from that: - Set up chroot environment in triggers to make sure we catch glibc errata - Remove some hacks to support building on all sorts of distributions at the cost of specfile readability - Remove postdrop group on deletion
2004-09-09 10:35:48 +00:00
stop
start
;;
reload)
[ $running -eq 0 ] || exit 7
auto-import changelog data from postfix-1.1.7-1.src.rpm Mon Apr 08 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.7-1 - 1.1.7, fixes 2 critical bugs - Make sure there's a resolv.conf in the chroot jail Wed Mar 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-3 - Add Provides: lines for alternatives stuff (#60879) Tue Mar 26 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.5-2 - rebuild Tue Mar 26 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-1 - 1.1.5 (bugfix release) - Rebuild with current db Thu Mar 14 2002 Bill Nottingham <notting@redhat.com> 1.1.4-3 - remove db trigger, it's both dangerous and pointless - clean up other triggers a little Wed Mar 13 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-2 - Some trigger tweaks to make absolutely sure /etc/services is in the chroot jail Mon Mar 11 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-1 - 1.1.4 - TLS 0.8.4 - Move postalias run from %post to init script to work around anaconda being broken. Fri Mar 08 2002 Bill Nottingham <notting@redhat.com> 1.1.3-5 - use alternatives --initscript support Thu Feb 28 2002 Bill Nottingham <notting@redhat.com> 1.1.3-4 - run alternatives --remove in %preun - add various prereqs Thu Feb 28 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.3-3 - adjust the default postfix-files config file to match the alternatives setup by altering the arguments passed to post-install in the %install phase (otherwise, it might point to sendmail's binaries, breaking it rather rudely) - adjust the post-install script so that it silently uses paths which have been modified for use with alternatives, for upgrade cases where the postfix-files configuration file isn't overwritten - don't forcefully strip files -- that's a build root policy - remove hard requirement on openldap, library dependencies take care of it - redirect %postun to /dev/null - don't remove the postfix user and group when the package is removed Wed Feb 20 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-2 - listen on 127.0.0.1 only by default (#60071) - Put config samples in /usr/share/doc/postfix-1.1.7 rather than /etc/postfix (#60072) - Some spec file cleanups Tue Feb 19 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-1 - 1.1.3, TLS 0.8.3 - Fix updating - Don't run the statistics cron job - remove requirement on perl Date::Calc Thu Jan 31 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-3 - Fix up alternatives stuff Wed Jan 30 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-2 - Use alternatives Sun Jan 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-1 - Initial Red Hat Linux packaging, based on spec file from Simon J Mudd <sjmudd@pobox.com> - Changes from that: - Set up chroot environment in triggers to make sure we catch glibc errata - Remove some hacks to support building on all sorts of distributions at the cost of specfile readability - Remove postdrop group on deletion
2004-09-09 10:35:48 +00:00
reload
;;
abort)
abort
;;
flush)
flush
;;
check)
check
;;
status)
status master
;;
condrestart)
[ $running -eq 0 ] || exit 0
stop
start
auto-import changelog data from postfix-1.1.7-1.src.rpm Mon Apr 08 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.7-1 - 1.1.7, fixes 2 critical bugs - Make sure there's a resolv.conf in the chroot jail Wed Mar 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-3 - Add Provides: lines for alternatives stuff (#60879) Tue Mar 26 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.5-2 - rebuild Tue Mar 26 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-1 - 1.1.5 (bugfix release) - Rebuild with current db Thu Mar 14 2002 Bill Nottingham <notting@redhat.com> 1.1.4-3 - remove db trigger, it's both dangerous and pointless - clean up other triggers a little Wed Mar 13 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-2 - Some trigger tweaks to make absolutely sure /etc/services is in the chroot jail Mon Mar 11 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-1 - 1.1.4 - TLS 0.8.4 - Move postalias run from %post to init script to work around anaconda being broken. Fri Mar 08 2002 Bill Nottingham <notting@redhat.com> 1.1.3-5 - use alternatives --initscript support Thu Feb 28 2002 Bill Nottingham <notting@redhat.com> 1.1.3-4 - run alternatives --remove in %preun - add various prereqs Thu Feb 28 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.3-3 - adjust the default postfix-files config file to match the alternatives setup by altering the arguments passed to post-install in the %install phase (otherwise, it might point to sendmail's binaries, breaking it rather rudely) - adjust the post-install script so that it silently uses paths which have been modified for use with alternatives, for upgrade cases where the postfix-files configuration file isn't overwritten - don't forcefully strip files -- that's a build root policy - remove hard requirement on openldap, library dependencies take care of it - redirect %postun to /dev/null - don't remove the postfix user and group when the package is removed Wed Feb 20 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-2 - listen on 127.0.0.1 only by default (#60071) - Put config samples in /usr/share/doc/postfix-1.1.7 rather than /etc/postfix (#60072) - Some spec file cleanups Tue Feb 19 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-1 - 1.1.3, TLS 0.8.3 - Fix updating - Don't run the statistics cron job - remove requirement on perl Date::Calc Thu Jan 31 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-3 - Fix up alternatives stuff Wed Jan 30 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-2 - Use alternatives Sun Jan 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-1 - Initial Red Hat Linux packaging, based on spec file from Simon J Mudd <sjmudd@pobox.com> - Changes from that: - Set up chroot environment in triggers to make sure we catch glibc errata - Remove some hacks to support building on all sorts of distributions at the cost of specfile readability - Remove postdrop group on deletion
2004-09-09 10:35:48 +00:00
;;
*)
echo $"Usage: $0 {start|stop|restart|reload|abort|flush|check|status|condrestart}"
exit 2
auto-import changelog data from postfix-1.1.7-1.src.rpm Mon Apr 08 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.7-1 - 1.1.7, fixes 2 critical bugs - Make sure there's a resolv.conf in the chroot jail Wed Mar 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-3 - Add Provides: lines for alternatives stuff (#60879) Tue Mar 26 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.5-2 - rebuild Tue Mar 26 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.5-1 - 1.1.5 (bugfix release) - Rebuild with current db Thu Mar 14 2002 Bill Nottingham <notting@redhat.com> 1.1.4-3 - remove db trigger, it's both dangerous and pointless - clean up other triggers a little Wed Mar 13 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-2 - Some trigger tweaks to make absolutely sure /etc/services is in the chroot jail Mon Mar 11 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.4-1 - 1.1.4 - TLS 0.8.4 - Move postalias run from %post to init script to work around anaconda being broken. Fri Mar 08 2002 Bill Nottingham <notting@redhat.com> 1.1.3-5 - use alternatives --initscript support Thu Feb 28 2002 Bill Nottingham <notting@redhat.com> 1.1.3-4 - run alternatives --remove in %preun - add various prereqs Thu Feb 28 2002 Nalin Dahyabhai <nalin@redhat.com> 1.1.3-3 - adjust the default postfix-files config file to match the alternatives setup by altering the arguments passed to post-install in the %install phase (otherwise, it might point to sendmail's binaries, breaking it rather rudely) - adjust the post-install script so that it silently uses paths which have been modified for use with alternatives, for upgrade cases where the postfix-files configuration file isn't overwritten - don't forcefully strip files -- that's a build root policy - remove hard requirement on openldap, library dependencies take care of it - redirect %postun to /dev/null - don't remove the postfix user and group when the package is removed Wed Feb 20 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-2 - listen on 127.0.0.1 only by default (#60071) - Put config samples in /usr/share/doc/postfix-1.1.7 rather than /etc/postfix (#60072) - Some spec file cleanups Tue Feb 19 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.3-1 - 1.1.3, TLS 0.8.3 - Fix updating - Don't run the statistics cron job - remove requirement on perl Date::Calc Thu Jan 31 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-3 - Fix up alternatives stuff Wed Jan 30 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-2 - Use alternatives Sun Jan 27 2002 Bernhard Rosenkraenzer <bero@redhat.com> 1.1.2-1 - Initial Red Hat Linux packaging, based on spec file from Simon J Mudd <sjmudd@pobox.com> - Changes from that: - Set up chroot environment in triggers to make sure we catch glibc errata - Remove some hacks to support building on all sorts of distributions at the cost of specfile readability - Remove postdrop group on deletion
2004-09-09 10:35:48 +00:00
esac
exit $?