postgrey cannot do reload and check status (PID problem)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postgrey (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 12.04.4 LTS, 64-bit version
postgrey 1.34-1
I cannot force reload of whitelist with reload command to service script of postgrey
# service postgrey reload
* Reloading postfix greylisting daemon configuration...... [fail]
This command is called from the script /etc/init.
start-stop-daemon --stop --signal 1 --quiet --pidfile /var/run/
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/
# cat /var/run/
3932
# ps -p 3932
PID TTY TIME CMD
# ps ax | grep postgrey | grep -v grep
1084 ? Ss 0:11 /usr/sbin/postgrey --pidfile=
postgrey runs with PID 1084 but 3932 is reported in /var/run/
Status query has the same problem, it report that postgrey is not running but it is not true because it runs with different PID...
# service postgrey status
* postgrey is not running
description: | updated |
description: | updated |
description: | updated |
summary: |
- postgrey cannot do reload (init.d script) + postgrey cannot do reload and check status (PID problem) |
Changed in postgrey (Ubuntu): | |
status: | New → Confirmed |
description: | updated |
start-stop-daemon cannot find postgrey process:
# service postgrey status
* postgrey is running
# ps -p $(cat /var/run/ postgrey. pid)
PID TTY TIME CMD
8168 ? 00:00:00 /usr/sbin/postg
# start-stop-daemon --stop --pidfile /var/run/ postgrey. pid --name postgrey
No postgrey found running; none killed.