Create a script shell file (dnpvacuum.sh) which runs "Optimize Message Indexes" (Denbun installation directory/dnpvacuum).
In the shell script file, describe the following command with the parameters.
Parameters:
-h [The full path name of Denbun installation directory]
-l
-a (<- Option to perform the optimization for all the users)
-u [User ID] (<- Option to perform the optimization for a user)
* Please specify either -a or -u [User ID] (not both).
* The optimization takes some time according to the amount of message data.Please consider it if you perform it for all the users.
* Example of Command 1: Perform the optimization for all the users
/var/www/cgi-bin/dnpwml/dnpvacuum -h /var/www/cgi-bin/dnpwml -l -a
|
* Example of Command 2: Perform the optimization for a user who has "2" as User ID.
/var/www/cgi-bin/dnpwml/dnpvacuum -h /var/www/cgi-bin/dnpwml -l -u 2
|
Use an editor such as vi to create a file and name it
"dnpvacuum.sh", and save it to the installation directory of Denbun.
[root@xxxxxx ~]# vi /var/www/cgi-bin/dnpwml/dnpvacuum.sh
|
* Example of dnpvacuum.sh
#!/bin/sh
export LD_LIBRARY_PATH=/var/www/cgi-bin/dnpwml/lib
/var/www/cgi-bin/dnpwml/dnpvacuum -h /var/www/cgi-bin/dnpwml -l -u 2
|
Replace the Denbun installation path Denbun according to your environment.
Specify the parameter for the command for the optimization program.
Set permission to the file dnpvacuum.sh.
[root@xxxxxx ~]# chmod 755 /var/www/cgi-bin/dnpwml/dnpvacuum.sh
|