hi hideo-san!

On 2011-11-16 01:16, [email protected] wrote:
> I judged that I could not set plural data_directory parameters from these 
> results and contributed a patch.
> Is my judgment wrong?

to my knowledge, you're correct.
multiple data_directories are not possible (and make imho make no sense)

>
> (Exapmle) It is postfix2.6.6 on RHEL6 that I confirmed.
>
>   * Step1 : I set two directories in main.cf.
>
> (snip)
> # The data_directory parameter specifies the location of Postfix-writable
> # data files (caches, random numbers). This directory must be owned
> # by the mail_owner account (see below).
> #
> data_directory = /var/lib/postfix,/var/lib/postfix2
> (snip)

so you set the directory to the single value
"/var/lib/postfix,/var/lib/postfix2"

which is not tokenized/split into an array.

>   * Step2 : I make a directory and give access permission.
>
> [root@rhel6-1 ~]# mkdir /var/lib/postfix2
> [root@rhel6-1 ~]# chown postfix:postfix /var/lib/postfix2
>
>
>   * Step3 : I execute postfix chek command.(ERROR)
>
> [root@rhel6-1 ~]# postfix check
> mkdir: cannot create directory `/var/lib/postfix,/var/lib/postfix2': No such 
> file or directory
> postfix/postfix-script: fatal: unable to create missing queue directories
> [root@rhel6-1 ~]# echo $?
> 1

that is expected and the resource agent should check the same.

i think there might be a misunderstanding regarding the loop:

the current loop:
 > for dir in "$data_dir"; do
 >    ...
 > done
(looping exactly one dir)

could easily be enhanced to check more dirs, e.g.:
 > for dir in "$data_dir" "$data_dir/active" "$data_dir/incoming"; do
 >    ...
 > done
(looping three dirs)

without having to re-introduce the loop.


thanks,
raoul
-- 
____________________________________________________________________
DI (FH) Raoul Bhatia M.Sc.          email.          [email protected]
Technischer Leiter

IPAX - Aloy Bhatia Hava OG          web.          http://www.ipax.at
Barawitzkagasse 10/2/2/11           email.            [email protected]
1190 Wien                           tel.               +43 1 3670030
FN 277995t HG Wien                  fax.            +43 1 3670030 15
____________________________________________________________________
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to