# cat /proc/$(cat /var/run/postgrey.pid)/stat 8168 (/usr/sbin/postg) S 1 8168 8168 0 -1 4219200 2987 0 6 0 26 9 0 0 20 0 1 0 9870635 70381568 3821 18446744073709551615 4194304 4198756 140735866909152 140735866908392 139909713549123 0 0 128 86023 18446744071580608617 0 0 17 2 0 0 19 0 0 6299096 6299784 14188544 140735866916671 140735866916768 140735866916768 140735866916837 0
This command works, postgrey is stopped:
# start-stop-daemon --stop --pidfile /var/run/postgrey.pid --name /usr/sbin/postg
# cat /proc/$(cat /var/run/ postgrey. pid)/stat 51615 4194304 4198756 140735866909152 140735866908392 139909713549123 0 0 128 86023 184467440715806 08617 0 0 17 2 0 0 19 0 0 6299096 6299784 14188544 140735866916671 140735866916768 140735866916768 140735866916837 0
8168 (/usr/sbin/postg) S 1 8168 8168 0 -1 4219200 2987 0 6 0 26 9 0 0 20 0 1 0 9870635 70381568 3821 184467440737095
This command works, postgrey is stopped:
# start-stop-daemon --stop --pidfile /var/run/ postgrey. pid --name /usr/sbin/postg