who's using that port?
I came home tonight to find my server with a full /var partition due to httpd-error.log being very full of error messages. I cleaned it up, and restarted apache to find that it wouldn't bind to ports 80 and 443 as they were in use. netstat -na confirmed that they were, but not by who. There's no -p argument to track the pid of the process using the port. How do you track that on BSD? Thanks, Mike -- Michael P. Soulier [EMAIL PROTECTED] Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. --Albert Einstein ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: who's using that port?
I came home tonight to find my server with a full /var partition due to httpd-error.log being very full of error messages. I cleaned it up, and restarted apache to find that it wouldn't bind to ports 80 and 443 as they were in use. netstat -na confirmed that they were, but not by who. There's no -p argument to track the pid of the process using the port. How do you track that on BSD? See sockstat(1). -- Matt Emmerton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: who's using that port?
netstat -na confirmed that they were, but not by who. There's no -p argument to track the pid of the process using the port. How do you track that on BSD? sockstat -4 -p port Josh ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: who's using that port?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael P. Soulier wrote: I came home tonight to find my server with a full /var partition due to httpd-error.log being very full of error messages. I cleaned it up, and restarted apache to find that it wouldn't bind to ports 80 and 443 as they were in use. netstat -na confirmed that they were, but not by who. There's no -p argument to track the pid of the process using the port. How do you track that on BSD? Thanks, Mike sysutils/lsof is helpful in this case. Just grep for the port number you are looking for. Make sure to run it as root though or it will only show a limited number of open filehandles. - -Garrett -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.1 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFqCyJEnKyINQw/HARAv/xAKCrodPnZo1E0RbZxlrAl5scOEBbyQCfSNVr yF85leoq+J2yCendJHvbuEo= =AdFg -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]