[postfix] Fixed systemd error message about missing chroot-update
Jaroslav Škarvada
jskarvad at fedoraproject.org
Thu Sep 6 13:15:05 UTC 2012
commit 6e5f23484ae5dfb6daabda5162ca690a7ad29763
Author: Jaroslav Škarvada <jskarvad at redhat.com>
Date: Thu Sep 6 15:14:55 2012 +0200
Fixed systemd error message about missing chroot-update
postfix-chroot-update | 3 +++
postfix.service | 2 +-
postfix.spec | 7 ++++++-
3 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/postfix-chroot-update b/postfix-chroot-update
new file mode 100644
index 0000000..3f9ddec
--- /dev/null
+++ b/postfix-chroot-update
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+[ -x /etc/postfix/chroot-update ] && exec /etc/postfix/chroot-update
diff --git a/postfix.service b/postfix.service
index a27ef2e..23df077 100644
--- a/postfix.service
+++ b/postfix.service
@@ -8,7 +8,7 @@ Type=forking
PIDFile=/var/spool/postfix/pid/master.pid
EnvironmentFile=-/etc/sysconfig/network
ExecStartPre=-/usr/libexec/postfix/aliasesdb
-ExecStartPre=-/etc/postfix/chroot-update
+ExecStartPre=-/usr/libexec/postfix/chroot-update
ExecStart=/usr/sbin/postfix start
ExecReload=/usr/sbin/postfix reload
ExecStop=/usr/sbin/postfix stop
diff --git a/postfix.spec b/postfix.spec
index eec17cc..de09a25 100644
--- a/postfix.spec
+++ b/postfix.spec
@@ -38,7 +38,7 @@
Name: postfix
Summary: Postfix Mail Transport Agent
Version: 2.9.4
-Release: 2%{?dist}
+Release: 3%{?dist}
Epoch: 2
Group: System Environment/Daemons
URL: http://www.postfix.org
@@ -57,6 +57,7 @@ Source1: postfix-etc-init.d-postfix
Source2: postfix.service
Source3: README-Postfix-SASL-RedHat.txt
Source4: postfix.aliasesdb
+Source5: postfix-chroot-update
# Sources 50-99 are upstream [patch] contributions
@@ -242,6 +243,7 @@ install -c %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/postfix
mkdir -p %{buildroot}%{_unitdir}
install -m 644 %{SOURCE2} %{buildroot}%{_unitdir}
install -m 755 %{SOURCE4} %{buildroot}%{postfix_daemon_dir}/aliasesdb
+install -m 755 %{SOURCE5} %{buildroot}%{postfix_daemon_dir}/chroot-update
install -c auxiliary/rmail/rmail $RPM_BUILD_ROOT%{_bindir}/rmail.postfix
@@ -525,6 +527,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Thu Sep 6 2012 Jaroslav Škarvada <jskarvad at redhat.com> - 2:2.9.4-3
+- Fixed systemd error message about missing chroot-update
+
* Fri Aug 3 2012 Jaroslav Škarvada <jskarvad at redhat.com> - 2:2.9.4-2
- Fixed sysv2systemd upgrade from f16
More information about the scm-commits
mailing list