On Sat, Mar 29, 2008 at 02:12:20PM -0400, Whit Blauvelt wrote:
> Hi Robert,
>
> What's this:
>
> postfix/policyd-weight[18125]: warning: cache: err: cache: chdir
> /tmp/.policyd-weight/: No such file or directory at /usr/sbin/policyd-weight
> line 2948, <GEN8330> line 100
A misguiding log-message.
Following patch makes it not more clear, but more correct.
--- old/policyd-weight Fri Mar 28 15:55:22 2008
+++ new/policyd-weight Sat Mar 29 20:50:44 2008
@@ -2945,7 +2945,8 @@
# change directory to $LOCKPATH in order to get some
# coredumps just in case.
- chdir "$LOCKPATH/cores/cache" or die "cache: chdir $LOCKPATH: $!";
+ chdir "$LOCKPATH/cores/cache" or die
+ "cache: chdir $LOCKPATH/cores/cache: $!";
mylog(info=>'cache spawned');
Manually killing policyd-weight implies to kill the cache instance.
The way to completely shut down policyd-weight is
policyd-weight -k stop
This doesn't work anymore if the directory has been deleted, in such
cases you need to do a ps xauww | grep policyd-weight
and kill the pids by verifying that it is a policyd-weight process.
Policyd-weight needs completely to be shut down _before_ you change
the $LOCKPATH config parameter.
--
Robert Felber (PGP: 896CF30B)
Munich, Germany
____________________________________________________________
Policyd-weight Mailinglist - http://www.policyd-weight.org/