diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:46:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:46:31 +0000 |
commit | 32afea41ba8b7328e252ae97ca32c56f98d42a90 (patch) | |
tree | 11b25ffd59d9190c8316cd48ace4e198531d0e7d /debian/patches/09_quiet_startup.diff | |
parent | Adding upstream version 3.4.23. (diff) | |
download | postfix-32afea41ba8b7328e252ae97ca32c56f98d42a90.tar.xz postfix-32afea41ba8b7328e252ae97ca32c56f98d42a90.zip |
Adding debian version 3.4.23-0+deb10u1.debian/3.4.23-0+deb10u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/09_quiet_startup.diff')
-rw-r--r-- | debian/patches/09_quiet_startup.diff | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/debian/patches/09_quiet_startup.diff b/debian/patches/09_quiet_startup.diff new file mode 100644 index 0000000..f87388e --- /dev/null +++ b/debian/patches/09_quiet_startup.diff @@ -0,0 +1,86 @@ +Index: postfix-dev/conf/postfix-script +=================================================================== +--- postfix-dev.orig/conf/postfix-script 2019-03-01 11:19:36.053713674 -0500 ++++ postfix-dev/conf/postfix-script 2019-03-01 11:19:36.049713674 -0500 +@@ -47,6 +47,13 @@ + FATAL="$LOGGER -p fatal" + PANIC="$LOGGER -p panic" + ++if [ "X${1#quiet-}" != "X${1}" ]; then ++ INFO=: ++ x=${1#quiet-} ++ shift ++ set -- $x "$@" ++fi ++ + umask 022 + SHELL=/bin/sh + +@@ -122,6 +129,20 @@ + echo "Stop postfix" + ;; + ++quick-start) ++ ++ $daemon_directory/master -t 2>/dev/null || { ++ $FATAL the Postfix mail system is already running ++ exit 1 ++ } ++ $daemon_directory/postfix-script quick-check || { ++ $FATAL Postfix integrity check failed! ++ exit 1 ++ } ++ $INFO starting the Postfix mail system ++ $daemon_directory/master & ++ ;; ++ + start|start-fg) + + $daemon_directory/master -t 2>/dev/null || { +@@ -189,7 +210,7 @@ + + $daemon_directory/master -t 2>/dev/null && { + $FATAL the Postfix mail system is not running +- exit 1 ++ exit 0 + } + $INFO stopping the Postfix mail system + kill `sed 1q pid/master.pid` +@@ -208,7 +229,7 @@ + + $daemon_directory/master -t 2>/dev/null && { + $FATAL the Postfix mail system is not running +- exit 1 ++ exit 0 + } + $INFO aborting the Postfix mail system + kill `sed 1q pid/master.pid` +@@ -252,12 +273,11 @@ + exit 0 + ;; + +- +-check-fatal) ++quick-check) + # This command is NOT part of the public interface. + + $SHELL $daemon_directory/post-install create-missing || { +- $FATAL unable to create missing queue directories ++ $WARN unable to create missing queue directories + exit 1 + } + +@@ -267,6 +287,13 @@ + $FATAL no $config_directory/master.cf file found + exit 1 + } ++ exit 0 ++ ;; ++ ++check-fatal) ++ # This command is NOT part of the public interface. ++ ++ $daemon_directory/postfix-script quick-check + + maillog_file=`$command_directory/postconf -h maillog_file` || { + $FATAL cannot execute $command_directory/postconf! |