[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re[2]: [vps-mail] Savelogs Question
- Subject: Re[2]: [vps-mail] Savelogs Question
- From: Abigail Marshall <abigail@xxxxxxxxxxxx>
- Date: Wed, 14 Apr 2004 16:08:58 -0700
SW> On Wed, Apr 14, 2004 at 02:27:30AM -0700, Abigail Marshall wrote:
>> Is there any simple way to accomplish this, other than
>> writing a separate script to run after savelogs with the
>> commands:
>>
>> chmod 660 /var/log/procmail.log
>> chgrp pop /var/log/procmail.log
SW> Have you tried sticking this in a 'postmovehook' section?
SW> PostMoveHook chmod 660 /var/log/procmail.log; chgrp pop /var/log/procmail.log
I have now. ;)
I didn't know about the PostMoveHook option. That certainly
answers my "simple way" question.
Quick syntax question:
In a configuration file, if I had a longer series of
commands that I wanted to run, should those all appear on a
single line after PostMoveHook (separated by semicolons)...
or would it also be appropriate to have several lines, such
as:
PostMoveHook chmod 660 /var/log/procmail.log
PostMoveHook chmod 600 /var/log/some_other_file
PostMoveHook restart_apache
(This doesn't matter too much - it's just that for scripting
& debugging it can be easier for me to have things set out
neatly on separate lines.)
-Abigail
======================================================================
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