Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 185611 - mail-filter/policyd-weight init script stop should use -k
Summary: mail-filter/policyd-weight init script stop should use -k
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Andrej Kacian (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-16 23:31 UTC by Paul B. Henson
Modified: 2007-07-17 14:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul B. Henson 2007-07-16 23:31:12 UTC
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 Andrej Kacian (RETIRED) gentoo-dev 2007-07-17 14:06:21 UTC
Good idea, thanks! Fixed in CVS.