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


 272 # Default settings for system log file management.
 273 # The -w option to logadm(1M) is the preferred way to write to this file,
 274 # but if you do edit it by hand, use "logadm -V" to check it for errors.
 275 # 
 276 # The format of lines in this file is:
 277 #       <logname> <options>
 278 # For each logname listed here, the default options to logadm
 279 # are given.  Options given on the logadm command line override
 280 # the defaults contained in this file.
 281 #
 282 # logadm typically runs early every morning via an entry in
 283 # root's crontab (see crontab(1)).
 284 #
 285 /var/adm/messages -C 4 -P 'Thu Nov  1 16:56:42 2001' -a 'kill -HUP `cat /var/run/*syslog*pid`'
 286 /var/cron/log -s 512k -t /var/cron/olog
 287 /var/lp/logs/lpsched -C 2 -N -t '$file.$N'
 288 #
 289 # The entry below is used by turnacct(1M)
 290 #
 291 /var/adm/pacct -C 0 -a '/usr/lib/acct/accton pacct' -g adm -m 664 -o adm -p never
 292 apache -C 24 -a '/usr/apache/bin/apachectl graceful' -p 1m -t '/var/apache/old-logs/$basename.%Y-%m' '/var/apache/logs/*{access,error}_log'
 293 /var/log/syslog -C 8 -P 'Thu Nov  1 09:16:38 2001' -a 'kill -HUP `cat /var/run/*syslog*pid`'
 294 /var/apache/logs/access_log -P 'Thu Nov  1 08:27:56 2001'
 295 /var/apache/logs/error_log -P 'Thu Nov  1 08:27:56 2001'
 296 /var/apache/logs/suexec_log -P 'Thu Nov  1 08:27:56 2001'
 297 /var/apache/logs/mod_jserv.log -P 'Thu Nov  1 08:27:56 2001'
 298 /var/apache/logs/jserv.log -P 'Thu Nov  1 08:27:56 2001'
 299 EOF
 300 }
 301 
 302 
 303 ###########################################################################
 304 #
 305 #       conftest1 -- minimal basic test of the conf.c code
 306 #
 307 ###########################################################################
 308 sub conftest1 {
 309         set_testconffile;
 310 
 311         set_file('checktest', <<'EOF');
 312 [ -s std.err ] && { cat std.err; exit 1; }
 313 /bin/sed '/^conffile <testfile.conf>:$/d' <std.out >sed.out
 314 exec /bin/diff testfile.conf sed.out
 315 EOF
 316 
 317         set_file('runtest', <<"EOF");
 318 # test "conftest1"


 806 # test "optstest2"
 807 $envsetup
 808 $bindir/optstest $options >std.out 2>std.err || exit 0
 809 exit 1
 810 EOF
 811 }
 812 
 813 ###########################################################################
 814 #
 815 #       logadmV1 -- test of "logadm -V"
 816 #
 817 ###########################################################################
 818 sub logadmV1 {
 819         set_testconffile;
 820 
 821         set_file('std.out.expect', <<'EOF');
 822 /var/adm/messages -C 4 -P 'Thu Nov  1 16:56:42 2001' -a 'kill -HUP `cat /var/run/*syslog*pid`'
 823 /var/cron/log -s 512k -t /var/cron/olog
 824 /var/lp/logs/lpsched -C 2 -N -t '$file.$N'
 825 /var/adm/pacct -C 0 -a '/usr/lib/acct/accton pacct' -g adm -m 664 -o adm -p never
 826 apache -C 24 -a '/usr/apache/bin/apachectl graceful' -p 1m -t '/var/apache/old-logs/$basename.%Y-%m' '/var/apache/logs/*{access,error}_log'
 827 /var/log/syslog -C 8 -P 'Thu Nov  1 09:16:38 2001' -a 'kill -HUP `cat /var/run/*syslog*pid`'
 828 /var/apache/logs/access_log -P 'Thu Nov  1 08:27:56 2001'
 829 /var/apache/logs/error_log -P 'Thu Nov  1 08:27:56 2001'
 830 /var/apache/logs/suexec_log -P 'Thu Nov  1 08:27:56 2001'
 831 /var/apache/logs/mod_jserv.log -P 'Thu Nov  1 08:27:56 2001'
 832 /var/apache/logs/jserv.log -P 'Thu Nov  1 08:27:56 2001'
 833 EOF
 834 
 835         set_file('checktest', <<'EOF');
 836 [ -s std.err ] && { cat std.err; exit 1; }
 837 exec /bin/diff std.out.expect std.out
 838 EOF
 839 
 840         set_file('runtest', <<"EOF");
 841 # test "logadmV1"
 842 $envsetup
 843 exec $bindir/logadm -f testfile.conf -F testfile.conf -V >std.out 2>std.err
 844 EOF
 845 }
 846 
 847 ###########################################################################
 848 #
 849 #       logadmV2 -- test of "logadm -V <entry>"
 850 #
 851 ###########################################################################
 852 sub logadmV2 {




 272 # Default settings for system log file management.
 273 # The -w option to logadm(1M) is the preferred way to write to this file,
 274 # but if you do edit it by hand, use "logadm -V" to check it for errors.
 275 # 
 276 # The format of lines in this file is:
 277 #       <logname> <options>
 278 # For each logname listed here, the default options to logadm
 279 # are given.  Options given on the logadm command line override
 280 # the defaults contained in this file.
 281 #
 282 # logadm typically runs early every morning via an entry in
 283 # root's crontab (see crontab(1)).
 284 #
 285 /var/adm/messages -C 4 -P 'Thu Nov  1 16:56:42 2001' -a 'kill -HUP `cat /var/run/*syslog*pid`'
 286 /var/cron/log -s 512k -t /var/cron/olog
 287 /var/lp/logs/lpsched -C 2 -N -t '$file.$N'
 288 #
 289 # The entry below is used by turnacct(1M)
 290 #
 291 /var/adm/pacct -C 0 -a '/usr/lib/acct/accton pacct' -g adm -m 664 -o adm -p never
 292 apache -C 24 -a '/usr/apache2/2.2/bin/apachectl graceful' -p 1m -t '/var/apache2/2.2/old-logs/$basename.%Y-%m' '/var/apache2/2.2/logs/*{access,error}_log'
 293 /var/apache2/2.2/logs/access_log -P 'Thu Nov  1 08:27:56 2001'
 294 /var/apache2/2.2/logs/error_log -P 'Thu Nov  1 08:27:56 2001'
 295 /var/apache2/2.2/logs/suexec_log -P 'Thu Nov  1 08:27:56 2001'
 296 /var/apache2/2.2/logs/mod_jserv.log -P 'Thu Nov  1 08:27:56 2001'
 297 /var/apache2/2.2/logs/jserv.log -P 'Thu Nov  1 08:27:56 2001'

 298 EOF
 299 }
 300 
 301 
 302 ###########################################################################
 303 #
 304 #       conftest1 -- minimal basic test of the conf.c code
 305 #
 306 ###########################################################################
 307 sub conftest1 {
 308         set_testconffile;
 309 
 310         set_file('checktest', <<'EOF');
 311 [ -s std.err ] && { cat std.err; exit 1; }
 312 /bin/sed '/^conffile <testfile.conf>:$/d' <std.out >sed.out
 313 exec /bin/diff testfile.conf sed.out
 314 EOF
 315 
 316         set_file('runtest', <<"EOF");
 317 # test "conftest1"


 805 # test "optstest2"
 806 $envsetup
 807 $bindir/optstest $options >std.out 2>std.err || exit 0
 808 exit 1
 809 EOF
 810 }
 811 
 812 ###########################################################################
 813 #
 814 #       logadmV1 -- test of "logadm -V"
 815 #
 816 ###########################################################################
 817 sub logadmV1 {
 818         set_testconffile;
 819 
 820         set_file('std.out.expect', <<'EOF');
 821 /var/adm/messages -C 4 -P 'Thu Nov  1 16:56:42 2001' -a 'kill -HUP `cat /var/run/*syslog*pid`'
 822 /var/cron/log -s 512k -t /var/cron/olog
 823 /var/lp/logs/lpsched -C 2 -N -t '$file.$N'
 824 /var/adm/pacct -C 0 -a '/usr/lib/acct/accton pacct' -g adm -m 664 -o adm -p never
 825 apache -C 24 -a '/usr/apache2/2.2/bin/apachectl graceful' -p 1m -t '/var/apache2/2.2/old-logs/$basename.%Y-%m' '/var/apache2/2.2/logs/*{access,error}_log'
 826 /var/log/syslog -C 8 -P 'Thu Nov  1 09:16:38 2001' -a 'kill -HUP `cat /var/run/*syslog*pid`'
 827 /var/apache2/2.2/logs/access_log -P 'Thu Nov  1 08:27:56 2001'
 828 /var/apache2/2.2/logs/error_log -P 'Thu Nov  1 08:27:56 2001'
 829 /var/apache2/2.2/logs/suexec_log -P 'Thu Nov  1 08:27:56 2001'
 830 /var/apache2/2.2/logs/mod_jserv.log -P 'Thu Nov  1 08:27:56 2001'
 831 /var/apache2/2.2/logs/jserv.log -P 'Thu Nov  1 08:27:56 2001'
 832 EOF
 833 
 834         set_file('checktest', <<'EOF');
 835 [ -s std.err ] && { cat std.err; exit 1; }
 836 exec /bin/diff std.out.expect std.out
 837 EOF
 838 
 839         set_file('runtest', <<"EOF");
 840 # test "logadmV1"
 841 $envsetup
 842 exec $bindir/logadm -f testfile.conf -F testfile.conf -V >std.out 2>std.err
 843 EOF
 844 }
 845 
 846 ###########################################################################
 847 #
 848 #       logadmV2 -- test of "logadm -V <entry>"
 849 #
 850 ###########################################################################
 851 sub logadmV2 {