Comment 0 for bug 1289424

Revision history for this message
psl (slansky) wrote : postgrey cannot do reload (init.d script)

Ubuntu 12.04.4 LTS, 64-bit version
postgrey 1.34-1

I cannot force reload of whitelist with reload commend to service script of postgrey

# service postgrey reload
 * Reloading postfix greylisting daemon configuration...... [fail]

This command is called from the script, it looks OK:

start-stop-daemon --stop --signal 1 --quiet --pidfile /var/run/postgrey.pid --name postgrey

When I manually send signal 1 to postgrey, whitelists are reloaded, so it proves that postgrey handles signal 1 correctly.

Problem is with PID file, /var/run/postgrey.pid. PID stored in the file is not the PID of running postgrey.

# cat /var/run/postgrey.pid
3932
# ps -p 3932
  PID TTY TIME CMD
# ps ax | grep postgrey | grep -v grep
 1084 ? Ss 0:11 /usr/sbin/postgrey --pidfile=/var/run/postgrey.pid --daemonize --inet=10023

postgrey runs with PID 1084 but 3932 is reported in /var/run/postgrey.pid