Print this page
2837 - remove print/lp* from gate and use CUPS from userland

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1m/logadm.1m
          +++ new/usr/src/man/man1m/logadm.1m
↓ open down ↓ 819 lines elided ↑ open up ↑
 820  820  
 821  821  .sp
 822  822  .LP
 823  823  This command is run once, and since the \fB-w\fR option is specified, an entry
 824  824  is made in \fB/etc/logadm.conf\fR so the apache logs are rotated from now on.
 825  825  
 826  826  .sp
 827  827  .in +2
 828  828  .nf
 829  829   % logadm -w apache -p 1m -C 24\e
 830      -     -t '/var/apache/old-logs/$basename.%Y-%m'\e
 831      -     -a '/usr/apache/bin/apachectl graceful'\e
 832      -     '/var/apache/logs/*{access,error}_log'
      830 +        -t '/var/apache2/2.2/old-logs/$basename.%Y-%m'\e
      831 +        -a '/usr/apache2/2.2/bin/apachectl graceful'\e
      832 +        '/var/apache2/2.2/logs/*{access,error}_log'
 833  833  .fi
 834  834  .in -2
 835  835  .sp
 836  836  
 837  837  .sp
 838  838  .LP
 839  839  This example also illustrates that the entry name supplied with the \fB-w\fR
 840  840  option doesn't have to match the log file name. In this example, the entry name
 841  841  is \fBapache\fR and once the line has been run, the entry in
 842  842  \fB/etc/logadm.conf\fR can be forced to run by executing the following command:
↓ open down ↓ 17 lines elided ↑ open up ↑
 860  860  .sp
 861  861  .LP
 862  862  The following command is an example without the quotes around the log name
 863  863  expression. The shell expands the last argument into a list of log files that
 864  864  exist at the time the command is entered, and writes an entry to
 865  865  \fB/etc/logadm.conf\fR that rotates the files.
 866  866  
 867  867  .sp
 868  868  .in +2
 869  869  .nf
 870      -logadm -w apache /var/apache/logs/*_log
      870 +logadm -w apache /var/apache2/2.2/logs/*_log
 871  871  .fi
 872  872  .in -2
 873  873  .sp
 874  874  
 875  875  .SH FILES
 876  876  .sp
 877  877  .ne 2
 878  878  .na
 879  879  \fB\fB/etc/logadm.conf\fR\fR
 880  880  .ad
↓ open down ↓ 48 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX