Comment 3 for bug 981789

Revision history for this message
pirlo (admin-pirlo) wrote : Re: Postgrey does not stop

the problem seem to be that start-stop-daemon uses /proc/pid/stat to identifiy the process - since ubuntu 12.04 stat changed a little bit!

this ist from ubuntu 11.10:
root@server:~# cat /proc/1816/stat
1816 (postgrey) S 1 1816 1816 0 -1 4202816 1088 0 7 0 0 5 0 0 20 0 1 0 78655 12664832 2025 4294967295 134512640 135724624 3215822704 3215822032 3078628388 0 0 128 86023 3239325390 0 0 17 1 0 0 106 0 0

and this one form 12.04:
root@server:~# cat /proc/21897/stat
21897 (/usr/sbin/postg) S 1 21897 21897 0 -1 4202816 1258 0 5 0 2 8 0 0 20 0 1 0 25279596 16523264 2416 4294967295 134512640 135963288 3220517632 3220517008 3077846052 0 0 128 86023 3239400398 0 0 17 3 0 0 150 0 0

if I use "/usr/sbin/postg" to start-stop the daemon it works:
root@server:~# start-stop-daemon --stop --oknodo --pidfile /var/run/postgrey.pid --name /usr/sbin/postg

after that no postgrey process is left