[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AW: [vps-mail] SA 3.02 - restarting spamd to read local.cf whitelists?





Thanks for this suggestion - I want to note that this
will only work ONCE per shell session. That's because
the string `cat /var/run/spamd.pid` incorporates the
process id number that exists as of the time the shell
is started into the alias.  If you run this command, a
new process is started -- but the alias is not
updated.

Obviously, if you are efficient, you shouldn't have to
run the command repeatedly - you should only run it
after completing any changes to .cf files. However, I'm not efficient. :( I make changes, then think about it, and make even more changes. -Abigail ======================================================================
This is <vps-mail@xxxxxxxxxxxx>       <http://www.perlcode.org/lists/>
Before posting a question, please search the archives (see above URL).
oh yes god catch !

i only use it on the shell not with an alias and i don't catch this problem, there should be a way to escape it so it run each time. i will see if i can find it when i have 5 minutes before me. anyway you can put this shell script:

--------------------------------------------------
#!/bin/sh

kill -HUP `cat /var/run/spamd.pid`
---------------------------------------

in /usr/local/bin and chmod it to 750  and chown root:wheel
this way it will work all the time :p

Ghislain.




======================================================================
This is <vps-mail@xxxxxxxxxxxx>       <http://www.perlcode.org/lists/>
Before posting a question, please search the archives (see above URL).


Main Index | Thread Index
Match: Format: Sort by:
Search: