Changeset 675
- Timestamp:
- 06/27/06 14:26:13 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
tea4cups/trunk/tea4cups.conf
r674 r675 21 21 # 22 22 23 24 23 25 # First we set all top-level directives in the [global] section 24 26 [global] 27 25 28 26 29 … … 30 33 31 34 35 32 36 # In which directory will we create our files ? It must already exist ! 33 37 # This directive MUST be present since there's no sane default value. … … 35 39 # The value defined in a print queue section takes precedence over the 36 40 # value defined in the [global] section. 41 # 37 42 # directory : /var/spool/tea4cups/ 38 43 directory : /var/spool/cups/ 44 39 45 40 46 … … 46 52 # value defined in the [global] section. 47 53 # BEWARE : this may use huge amounts of disk space ! 54 # 48 55 # keepfiles : yes 49 56 50 57 58 59 # Should we retry to send the job's datas to the real backend in the case 60 # it fails ? The default when not set is to try to send the datas only once 61 # to the real backend. 62 # Can be set either in the [global] section or any print queue section. 63 # The value defined in a print queue section takes precedence over the 64 # value defined in the [global] section. 65 # 66 # Syntax : "retry: N,S" 67 # 68 # N : number of times to try. If 0, will retry indefinitely, until 69 # the backend accepts all the datas without error. 70 # 71 # S : delay in Seconds between two attempts. 72 # 73 # The example below would retry up to three times, at 60 seconds interval. 74 # 75 # retry : 3,60 76 77 78 51 79 # Should we launch some command when the real CUPS backend fails ? 52 80 # Can be set either in the [global] section or any print queue section. 53 81 # The value defined in a print queue section takes precedence over the 54 82 # value defined in the [global] section. 83 # IMPORTANT : this directive is only taken into account when the number 84 # of tries as defined in the 'retry' directive above have expired and 85 # the real backend still fails. 86 # 55 87 # onfail : echo "Original Backend failed" | /usr/bin/mail -s Tea4CUPS root 88 56 89 57 90 … … 71 104 72 105 106 73 107 # Should we serialize the launch of all hooks : launch one after 74 108 # the other to save some system resources. … … 83 117 # The value defined in a print queue section takes precedence over the 84 118 # value defined in the [global] section. 119 # 85 120 # serialize : yes 121 86 122 87 123 … … 111 147 112 148 149 113 150 # Some prehooks and posthooks 114 151 # … … 140 177 141 178 179 142 180 # Sample section for print queue HP2100 143 181 # Uncomment and adapt to your needs. … … 147 185 # By using a same hook name as in the [global] section, the new 148 186 # value takes precedence 187 # 149 188 #posthook_0 : cat $TEADATAFILE >~$TEAUSERNAME/savejobs/$TEAJOBID.prn 189 150 190 151 191 152 192 # An empty value deletes a value defined in the [global] section 153 193 # so this particular hook doesn't get executed on this printer. 194 # 154 195 #prehook_pdf : 155 196 156 197 198 157 199 # A reflector which produces 4 copies each time : 200 # 158 201 #posthook_4copies : lp -dotherprinter -n4 $CUPSDATAFILE 159 202 160 203 204 161 205 # A simple accounting mechanism 206 # 162 207 #prehook_accounting : echo $TEAPRINTERNAME $TEAJOBID $TEAUSERNAME $TEABILLING `pkpgcounter $TEADATAFILE` >>/var/log/printaccounting.log 163 208 … … 172 217 # if they differ only by the value of the '%%CreationDate:' PostScript 173 218 # comment ! 219 # 174 220 #prehook_to_filter_duplicates : /usr/local/bin/checkdupes $TEAMD5SUM /tmp/jobmd5sums 175 221 #posthook_to_filter_duplicates : echo "$TEAJOBID : $TEAMD5SUM" >>/tmp/jobmd5sums 222 176 223 177 224