/etc/init.d/postfix stop does not terminate "master"

Bug #29530 reported by Mircea MITU
8
Affects Status Importance Assigned to Milestone
postfix (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

The "master" daemon does not exit when issuing "/etc/init.d/postfix stop" command.

$ sudo netstat -tapn|grep \:25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 5179/master
$ pgrep master
5179
$ sudo /etc/init.d/postfix stop
 * Stopping Postfix Mail Transport Agent postfix [ ok ]
mache@mmitu:/tmp$ pgrep master
5179

No related messages are thrown to syslog.

To stop postfix I have to run: "sudo pkill -9 master".

Output of sudo sh -x /etc/init.d/postfix stop:

+ PATH=/bin:/usr/bin:/sbin:/usr/sbin
+ DAEMON=/usr/sbin/postfix
+ NAME=Postfix
+ TZ=
+ unset TZ
+ SYNC_CHROOT=y
+ test -f /etc/default/postfix
+ test -x /usr/sbin/postfix
+ test -f /etc/postfix/main.cf
+ . /lib/lsb/init-functions
++ '[' -e /etc/lsb-base-logging.sh ']'
++ . /etc/lsb-base-logging.sh
++ lsb_release -is
+ DISTRO=Ubuntu
+ case "$1" in
+ RUNNING=
+ '[' -f /var/spool/postfix/pid/master.pid ']'
++ sed 's/ //g' /var/spool/postfix/pid/master.pid
+ pid=5179
++ ls -l /proc/5179/exe
++ sed 's/.* //'
+ exe=/data/backup/usr/lib/postfix/master
+ '[' X/data/backup/usr/lib/postfix/master = X/usr/lib/postfix/master ']'
+ log_daemon_msg 'Stopping Postfix Mail Transport Agent' postfix
+ '[' -z 'Stopping Postfix Mail Transport Agent' ']'
+ log_use_usplash
+ type usplash_write
+ usplash_write 'TEXT Stopping Postfix Mail Transport Agent postfix'
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ '[' -x /usr/bin/tput ']'
+ '[' -x /usr/bin/expr ']'
+ /usr/bin/tput hpa 60
+ FANCYTTY=1
+ true
+ /usr/bin/tput xenl
++ /usr/bin/tput cols
+ COLS=127
+ '[' 127 ']'
++ /usr/bin/expr 127 - 7
+ COL=120
+ printf ' * Stopping Postfix Mail Transport Agent postfix '
 * Stopping Postfix Mail Transport Agent postfix ++ /usr/bin/expr 127 - 1
+ /usr/bin/tput hpa 126
                                                                                                                              + printf ' '
 + '[' -n '' ']'
+ log_end_msg 0
+ '[' -z 0 ']'
+ log_use_usplash
+ type usplash_write
+ '[' 0 -eq 0 ']'
+ usplash_write 'SUCCESS ok'
+ '[' 120 ']'
+ printf '\r'
+ /usr/bin/tput hpa 120
                                                                                                                        + '[' 0 -eq 0 ']'
+ echo '[ ok ]'
[ ok ]
+ return 0
+ exit 0

Revision history for this message
Mircea MITU (mache) wrote :

This behavior is present in Dapper, not in Breezy.

Revision history for this message
LaMont Jones (lamont) wrote :

If /usr/lib/postfix isn't under the root, then postfix stop decides to not terminate master.

Changed in postfix:
status: Unconfirmed → In Progress
Revision history for this message
Scott Kitterman (kitterman) wrote :

Verified working correctly in Feisty with 2.3.8-2.

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

Other bug subscribers

Remote bug watches

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