postfix: calls lsb_release, which slows down the boot process

Bug #83113 reported by Michael Biebl
4
Affects Status Importance Assigned to Milestone
postfix (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: postfix

The init script of postfix contains the following line:

DISTRO=$(lsb_release -is 2>/dev/null || echo Debian)

As the attached bootchart shows, this slows down the boot process by 3-4 seconds. (lsb_release seems to call apt-cache and dpkg-query, which is ...)
I don't know, if the DISTRO env variable is actually needed, and if so, it would be best to simply set it to Ubuntu resp. Debian, or cache the result somehow.

Revision history for this message
Michael Biebl (mbiebl) wrote :
Revision history for this message
Daniel Hahler (blueyed) wrote :

It appears to be commented out in Gutsy's postfix_2.4.0-3 init script.
Just noting..

Revision history for this message
Scott Kitterman (kitterman) wrote :

Fixed by Debian in postfix 2.3.8-3 release.

Changed in postfix:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.