From 6e5f23484ae5dfb6daabda5162ca690a7ad29763 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Thu, 6 Sep 2012 15:14:55 +0200 Subject: [PATCH] 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(-) create mode 100644 postfix-chroot-update 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 - 2:2.9.4-3 +- Fixed systemd error message about missing chroot-update + * Fri Aug 3 2012 Jaroslav Škarvada - 2:2.9.4-2 - Fixed sysv2systemd upgrade from f16