Bug 248615 - sockstat ???
Summary: sockstat ???
Status: Closed Feedback Timeout
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 12.1-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-12 11:02 UTC by Aleks
Modified: 2020-08-25 17:49 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aleks 2020-08-12 11:02:16 UTC
r362880 GENERIC  amd64

13:20:16 [root@****** /usr/ports/security/cyrus-sasl2] #  sockstat -lw -p 25 -P tcp
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS                                 FOREIGN ADDRESS                              
postfix  smtpd      69886 6  tcp4   *:25                                          *:*
postfix  smtpd      69884 6  tcp4   *:25                                          *:*
postfix  smtpd      69882 6  tcp4   *:25                                          *:*
postfix  smtpd      69880 6  tcp4   *:25                                          *:*
postfix  smtpd      69878 6  tcp4   *:25                                          *:*
postfix  smtpd      69876 6  tcp4   *:25                                          *:*
postfix  smtpd      69874 6  tcp4   *:25                                          *:*
postfix  smtpd      69872 6  tcp4   *:25                                          *:*
postfix  smtpd      69870 6  tcp4   *:25                                          *:*
root     master     59718 13 tcp4   *:25                                          *:*
root     sendmail   7225  4  tcp4   10.0.0.3:25                                   *:*
13:20:17 [root@****** /usr/ports/security/cyrus-sasl2] # 
13:20:54 [root@****** /usr/ports/mail] # service postfix STOP
/usr/local/etc/rc.d/postfix: unknown directive 'STOP'.
Usage: /usr/local/etc/rc.d/postfix [fast|force|one|quiet](start|stop|restart|rcvar|enable|disable|delete|enabled|describe|extracommands|reload|status|poll)
13:21:03 [root@****** /usr/ports/mail] # service postfix stop
postfix/postfix-script: stopping the Postfix mail system

13:21:08 [root@****** /usr/ports/mail] # 
13:21:24 [root@****** /usr/ports/mail] # sockstat -lw -p 25 -P tcp
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS                                 FOREIGN ADDRESS                              
root     sendmail   7225  4  tcp4   10.0.0.3:25                                   *:*

13:21:24 [root@****** /usr/ports/mail] # 
13:21:42 [root@p****** /usr/ports/mail] # service postfix start
postfix/postfix-script: starting the Postfix mail system
13:21:49 [root@******/usr/ports/mail] # sockstat -lw -p 25 -P tcp
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS                                 FOREIGN ADDRESS                              
root     master     70398 13 tcp4   *:25                                          *:*
root     sendmail   7225  4  tcp4   10.0.0.3:25                                   *:*
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2020-08-12 16:27:05 UTC
^Triage: To submitter: can you please provide a more descriptive Summary?  Thanks.
Comment 2 Aleks 2020-08-13 04:42:38 UTC
writes that the socket is busy
Comment 3 pprocacci 2020-08-14 03:30:29 UTC
What writes that the sockets are busy?  Postfix startup?
Are you trying to bind postfix to a port already bound by sendmail?
What happens when you stop sendmail first, then restart postfix?
Comment 4 Mark Johnston freebsd_committer 2020-08-25 17:49:24 UTC
Please feel free to re-open with the feedback requested in comment 3.