Changeset 1687 for pykota/trunk/conf

Show
Ignore:
Timestamp:
09/01/04 01:29:53 (20 years ago)
Author:
jalet
Message:

Introduction of the new 'onaccountererror' configuration directive.
Small fix for software accounter's return code which can't be None anymore.
Make software and hardware accounting code look similar : will be factorized
later.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/conf/pykota.conf.sample

    r1622 r1687  
    302302# accounter: hardware(/usr/share/pykota/waitprinter.sh %(printer)s && /usr/bin/snmpget -v1 -c public -Ov %(printer)s mib-2.43.10.2.1.4.1.1 | cut -f 2,2 -d " ") 
    303303accounter: software(/usr/bin/pkpgcounter) 
     304 
     305# What should we do if the accounter's subprocess doesn't return 
     306# a valid result (for example doesn't return an integer on its stdout) 
     307# 
     308# Valid values are : 'continue' and 'stop'. 'stop' is the default 
     309# if unset. 
     310# 
     311# 'continue' means try to process as usual, this may introduce 
     312# accounting errors and free jobs. This was the default behavior 
     313# until v1.20alpha5. 
     314# 
     315# 'stop' means fail and stop the print queue. If an accounter 
     316# error occurs, most of the time this is a misconfiguration, so 
     317# stopping the print queue is usually the better thing to do  
     318# until the admin has fixed the configuration. 
     319# 
     320# This value can be set either globally or on a per printer basis 
     321# If both are defined, the printer option has priority. 
     322# 
     323# onaccountererror: continue 
     324onaccountererror: stop 
    304325 
    305326# Print Quota administrator