Bug 185611 - mail-filter/policyd-weight init script stop should use -k
Bug#: 185611 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: ticho@gentoo.org Reported By: henson@acm.org
Component: Ebuilds
URL: 
Summary: mail-filter/policyd-weight init script stop should use -k
Keywords:  
Status Whiteboard: 
Opened: 2007-07-16 23:31 0000
Description:   Opened: 2007-07-16 23:31 0000
The current init script installed for policyd-weight runs
"/usr/lib/postfix/policyd-weight stop" to shut down the server. However, that
does not kill the cache process:

-----
# /etc/init.d/policyd-weight start
 * Starting policyd-weight ...                                                
$
[ ok ]

# ps -ef | grep policyd-weight
polw      9144     1  0 13:46 ?        00:00:00 policyd-weight (master)
polw      9145  9144  0 13:46 ?        00:00:00 policyd-weight (cache)

# /etc/init.d/policyd-weight stop
 * Stopping policyd-weight ...                                                
$
[ ok ]

# ps -ef | grep policyd-weight
polw      9145     1  0 13:46 ?        00:00:00 policyd-weight (cache)
-----

The init script should use the -k option, which also cleans up the cache
process:

-----
# /etc/init.d/policyd-weight start
 * Starting policyd-weight ...                                                
$
[ ok ]

# ps -ef | grep policyd-weight
polw      9239     1  0 13:47 ?        00:00:00 policyd-weight (master)
polw      9240  9239  0 13:47 ?        00:00:00 policyd-weight (cache)

# /usr/lib/postfix/policyd-weight stop -k
terminating

# ps -ef | grep policyd-weight

-----

------- Comment #1 From Andrej Kacian (RETIRED) 2007-07-17 14:06:21 0000 -------
Good idea, thanks! Fixed in CVS.