Show Service's Connections
Show active connections for a running SystemD service
Show connections for a service
The oneliner
ps -e -o pid,cgroup \
| awk '$2 ~ /dovecot.service/ {print "-p", $1}' \
| xargs -r lsof -n -i -aWhat does it do?
Example output
Last updated