LINUX.ORG.RU

cups долгий старт


0

0

Пытаюсь уменьшить время старта ОС (встраиваемая система). Долго стартует CUPS, а нужен всего один принтер который уже настроен. В /var/log/cups/error_log вижу попытки cups загрузить разные устройства - "LoadDevices: Added device...." - можно ли это отключить? Затем самое долгое - cups загружает "LoadPPDs: Read "/etc/cups/ppds.dat", 3589 PPDs" - и обрабатывает долго, можно ли отключить?

anonymous
Ответ на: комментарий от Lumi

)
Да нет конечно, подумал что написал основное.

Вот содержимое /var/log/cups/error_log от последней перезагрузки:

I [06/Aug/2008:09:45:08 +0400] Listening to 7f000001:631
I [06/Aug/2008:09:45:08 +0400] Listening to a000635:631
D [06/Aug/2008:09:45:08 +0400] AddLocation: added location '/'
D [06/Aug/2008:09:45:08 +0400] AllowIP: / allow 00000000/00000000
D [06/Aug/2008:09:45:08 +0400] AddLocation: added location '/admin'
D [06/Aug/2008:09:45:08 +0400] AllowIP: /admin allow 7f000001/ffffffff
D [06/Aug/2008:09:45:08 +0400] AllowIP: /admin allow 0a000600/ffffff00
D [06/Aug/2008:09:45:08 +0400] AddLocation: added location '/printers'
D [06/Aug/2008:09:45:08 +0400] AllowIP: /printers allow 00000000/00000000
D [06/Aug/2008:09:45:08 +0400] AddLocation: added location '/classes'
D [06/Aug/2008:09:45:08 +0400] AllowIP: /classes allow 00000000/00000000
I [06/Aug/2008:09:45:08 +0400] Loaded configuration file "/etc/cups/cupsd.conf"
I [06/Aug/2008:09:45:08 +0400] Configured for up to 100 clients.
I [06/Aug/2008:09:45:08 +0400] Allowing up to 100 client connections per host.
I [06/Aug/2008:09:45:08 +0400] Full reload is required.
D [06/Aug/2008:09:45:08 +0400] LoadAllPrinters: Loading printer hp6943...
D [06/Aug/2008:09:45:08 +0400] cupsd: setting job-sheets-defauilt attributes
D [06/Aug/2008:09:45:08 +0400] cupsd: job-sheets-defauilt attributes are set!
D [06/Aug/2008:09:45:09 +0400] LoadDevices: Added device "http"...
D [06/Aug/2008:09:45:09 +0400] LoadDevices: Added device "ipp"...
D [06/Aug/2008:09:45:09 +0400] LoadDevices: Added device "lpd"...
D [06/Aug/2008:09:45:09 +0400] LoadDevices: Added device "hp"...
D [06/Aug/2008:09:45:09 +0400] LoadDevices: Added device "scsi"...
D [06/Aug/2008:09:45:10 +0400] LoadDevices: Added device "serial:/dev/ttyS0?baud=115200"...
.... Убрал для наглядности 1 ... 30
D [06/Aug/2008:09:45:10 +0400] LoadDevices: Added device "serial:/dev/ttyS31?baud=115200"...
D [06/Aug/2008:09:45:10 +0400] LoadDevices: Added device "usb:/dev/usb/lp0"...
.... Убрал для наглядности 1 ... 14
D [06/Aug/2008:09:45:10 +0400] LoadDevices: Added device "usb:/dev/usb/lp15"...
D [06/Aug/2008:09:45:10 +0400] LoadDevices: Added device "socket"...
I [06/Aug/2008:09:45:11 +0400] LoadPPDs: Read "/etc/cups/ppds.dat", 3591 PPDs...
I [06/Aug/2008:09:45:12 +0400] LoadPPDs: No new or changed PPDs...
D [06/Aug/2008:09:45:12 +0400] LoadAllJobs: Scanning /var/spool/cups...
D [06/Aug/2008:09:45:12 +0400] LoadAllJobs: Loading attributes for job 1...
.... Убрал для наглядности 2 ... 26
D [06/Aug/2008:09:45:13 +0400] LoadAllJobs: Loading attributes for job 27...
I [06/Aug/2008:09:45:13 +0400] Full reload complete.
D [06/Aug/2008:09:45:13 +0400] StartListening: NumListeners=2
D [06/Aug/2008:09:45:13 +0400] StartListening: address=7f000001 port=631
D [06/Aug/2008:09:45:13 +0400] StartListening: address=0a000635 port=631
D [06/Aug/2008:09:45:13 +0400] ResumeListening: setting input bits...

Вижу много LoadAllJobs... , хотя заданий нет на печать, lpq показывает пусто.

x905 ★★★★★
()
Ответ на: комментарий от x905

продолжение:

Содержимое printers.conf:
# Printer configuration file for CUPS v1.1.23
# Written by cupsd on Птн 06 Июн 2008 11:54:39
<DefaultPrinter hp6943>
Info HP / DeskJet 690C Foomatic/hpijs (recommended)
Location
DeviceURI usb://6940?serial=MY768BS1RZ04QF
State Idle
Accepting Yes
InteractiveMode Off
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
MaxMacLevel 0
</Printer>

Содержимое cupsd.conf (коментарии убрал):
LogLevel debug
FileDevice No
TempDir /var/spool/cups/tmp
DefaultCharset koi8-r
DefaultLanguage ru
PreserveJobHistory Yes
Listen 127.0.0.1:631
Listen 10.0.6.53:631
HostNameLookups Off
Browsing On
BrowseShortNames Yes
ImplicitClasses Off
BrowseAddress @LOCAL
BrowseInterval 30
SystemGroup sys

<Location />
AuthType None
Order Allow,Deny
Allow From All
Encryption IfRequested
</Location>
<Location /admin>
AuthType Basic
AuthClass System
AuthGroupName
Order Deny,Allow
Allow From 127.0.0.1
#Deny From All
Allow From 10.0.6.*
Encryption IfRequested
</Location>
<Location /printers>
AuthType None
Order Allow,Deny
Allow From All
Encryption IfRequested
</Location>
<Location /classes>
AuthType None
Order Allow,Deny
Allow From All
Encryption IfRequested
</Location>

FileDevice No
ImplicitAnyClasses Off
HideImplicitMembers Off

x905 ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.