Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Feb 2016 20:14:41 +0000 (UTC)
From:      Olli Hauer <ohauer@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r409553 - head/mail/postfix/files
Message-ID:  <201602252014.u1PKEfx7070225@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ohauer
Date: Thu Feb 25 20:14:40 2016
New Revision: 409553
URL: https://svnweb.freebsd.org/changeset/ports/409553

Log:
  - add missing reload part into pkg-install

Modified:
  head/mail/postfix/files/pkg-install.in

Modified: head/mail/postfix/files/pkg-install.in
==============================================================================
--- head/mail/postfix/files/pkg-install.in	Thu Feb 25 20:10:33 2016	(r409552)
+++ head/mail/postfix/files/pkg-install.in	Thu Feb 25 20:14:40 2016	(r409553)
@@ -130,6 +130,20 @@ install_mailer_conf() {
 }
 
 # ==============================================================================
+# Run postfix reload
+# This is a candidate for a dedicated pkg-post-upgrade script, but it seems
+# this not fully implemented in pkg :(see upstream PR 941)
+# ==============================================================================
+try_reload(){
+	${PREFIX}/sbin/postfix status 2>/dev/null
+if [ $? -eq 0 ]; then
+	${PREFIX}/sbin/postfix reload
+else
+	echo "postfix not running"
+fi
+}
+
+# ==============================================================================
 # Run postfix post-install to fix permissions and new config values
 # ==============================================================================
 if [ "$2" = "POST-INSTALL" ]; then
@@ -152,6 +166,7 @@ if [ -f "${MC_BASE}" ]; then
 		if [ $? -eq 0 ]; then
 			show_activated_msg ${MC_BASE}
 			cmp_mailer ${MC_LOCALBASE} || install_mailer_conf ${MC_LOCALBASE}
+			try_reload
 		else
 			cmp_mailer ${MC_LOCALBASE} || install_choise ${MC_LOCALBASE}
 		fi
@@ -161,6 +176,7 @@ if [ -f "${MC_BASE}" ]; then
 			install_choise ${MC_BASE}
 		else
 			show_activated_msg ${MC_BASE}
+			try_reload
 		fi
 	fi
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602252014.u1PKEfx7070225>