Package: postfix Followup-For: Bug #660177 User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu precise ubuntu-patch
It seems a further patch is needed here. postmulti is failing to return any postfix instances when run in early boot, for some reason; as a result, '/etc/init.d/postfix status' mistakenly returns success. Attached is a patch that fixes the initscript to return non-zero on postmulti failure. Changelog entry: * debian/init.d: if postmulti fails (which for some reason it does when the rootfs is read-only in early boot!), the init script 'status' command returns zero because "all" of 0 configured instances are running. Fix the script to return non-zero in this case. LP: #927803. Thanks for considering the patch. -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. Ubuntu Developer http://www.debian.org/ slanga...@ubuntu.com vor...@debian.org
=== modified file 'debian/changelog' === modified file 'debian/init.d' --- debian/init.d 2011-10-05 14:11:54 +0000 +++ debian/init.d 2012-02-17 18:25:07 +0000 @@ -226,6 +226,10 @@ ALL=0 fi done + # handle the case when postmulti returns *no* configured instances + if [ $ANY = 0 ]; then + ALL=0 + fi if [ $ALL = 1 ]; then log_success_msg "postfix is running" exit 0