I just installed the RPM for version 3.6.26 and ran into a problem I
haven't encountered before. It seems LPRng isn't binding to any ports at
all!
The system also acts as a firewall (which is why I anxiously await the
addition of lpd_port=ip.address%port that was promised!). LPRng is
started prior to any firewall scripts, so that's not an issue (shouldn't
be anyway). I have an internal DNS server that is verified working, and
I've doublechecked all hostname issues. I'm using a stock (i.e. blank)
lpd.conf, and stock lpd.perms.
Excuse the length of the following, but I might as well be thorough...
------------------------------------------------------------
[root@raven bhartin]# lpc status all
Printer 'all@localhost' - cannot open connection - Connection refused --
Make sure LPD server is running on the server
[root@raven bhartin]# ps auxw | grep lpd
daemon 438 0.0 1.1 1644 748 ? S 23:24 0:00 lpd Waiting
[root@raven bhartin]# netstat -n --listening | grep 515
<nothing>
[root@raven bhartin]# grep 515 /etc/services
printer 515/tcp spooler # line printer spooler
[root@raven bhartin]# /etc/rc.d/init.d/lprng stop
Shutting down lprng: [ OK ]
[root@raven bhartin]# lpd -D 1 -F &> log
<CTRL-C>
The file "log" is sent as an attachment due to length.
------------------------------------------------------------
It's late though, so I'm probably stupidly missing a very obvious
thing. I need to stop doing stuff at the last minute like this =)
Thanks,
Brad
2000-11-21-23:33:43 [670] lpd Initialize: starting
2000-11-21-23:33:43 [670] lpd Initialize: /dev/null fd 4
2000-11-21-23:33:43 [670] lpd initsetproctitle: doing setup
2000-11-21-23:33:43 [670] lpd initsetproctitle: Argv 0xbffffba4, LastArgv 0xbfffffed
2000-11-21-23:33:43 [670] lpd setup_info: OriginalEUD 0, OriginalRUID 0
2000-11-21-23:33:43 [670] lpd Initialize: setuid check enabled
2000-11-21-23:33:43 [670] lpd Get_parms: UID_root 1, OriginalRUID 0
2000-11-21-23:33:43.332 [670] lpd Setup_configuration: starting, Allow_getenv 0
2000-11-21-23:33:43.333 [670] lpd Setup_configuration: Configuration file
'/etc/lpd.conf'
2000-11-21-23:33:43.333 [670] lpd Setup_configuration: Require_configfiles_DYN '1'
2000-11-21-23:33:43.334 [670] lpd Get_config: required '1', '/etc/lpd.conf'
2000-11-21-23:33:43.342 raven [670] lpd Get_local_host: ShortHost_FQDN=raven,
FQDNHost_FQDN=raven.hartinhome.net
2000-11-21-23:33:43.348 raven [670] lpd DaemonUID 2
2000-11-21-23:33:43.349 raven [670] lpd Setup_configuration: Host
'raven.hartinhome.net', ShortHost 'raven', user '<NULL>'
2000-11-21-23:33:43.353 raven [670] lpd Build_printcap_info: list->count 0,
raw->count 25
2000-11-21-23:33:43.356 raven [670] lpd Get_max_servers: getrlimit returns 256
2000-11-21-23:33:43.356 raven [670] lpd Get_max_servers: returning 128
2000-11-21-23:33:43.357 raven [670] lpd Get_max_fd: returning 1024
2000-11-21-23:33:43.357 raven [670] lpd lpd: maximum servers 128, maximum file
descriptors 1024
2000-11-21-23:33:43.366 raven [670] lpd lpd: listening socket fd 5
2000-11-21-23:33:43.370 raven [671] Waiting lpd: writing lockfile
'/var/run/lpd.printer' fd 6 with pid '671'
2000-11-21-23:33:43.371 raven [671] Waiting setmessage: msg 'Starting'
2000-11-21-23:33:43.372 raven [671] Waiting Get_max_servers: getrlimit returns 256
2000-11-21-23:33:43.373 raven [671] Waiting Get_max_servers: returning 128
2000-11-21-23:33:43.373 raven [671] Waiting lpd: maximum servers 128
2000-11-21-23:33:43.374 raven [671] Waiting Start_all: begin
2000-11-21-23:33:43.374 raven [671] Waiting Start_all: fd p(8,9)
2000-11-21-23:33:43.377 raven [671] Waiting Start_all: pid 672, fd 8
2000-11-21-23:33:43.377 raven [671] Waiting Fork_error: 8
2000-11-21-23:33:43.378 raven [671] Waiting lpd: LOOP START
2000-11-21-23:33:43.379 raven [671] Waiting Get_max_servers: getrlimit returns 256
2000-11-21-23:33:43.379 raven [671] Waiting Get_max_servers: returning 128
2000-11-21-23:33:43.379 raven [671] Waiting lpd: max_servers 128, active 1
2000-11-21-23:33:43.380 raven [671] Waiting lpd: fork_failed 8, processes 1 active,
max 128
2000-11-21-23:33:43.380 raven [671] Waiting lpd: starting select timeout 'no', 0 sec,
max_socks 9
2000-11-21-23:33:43.382 raven [672] STARTALL Get_all_printcap_entries: starting
2000-11-21-23:33:43.383 raven [672] STARTALL Select_pc_info: looking for 'all', depth
0
2000-11-21-23:33:43.383 raven [672] STARTALL Select_pc_info: [0] 'ky=ky'
2000-11-21-23:33:43.384 raven [672] STARTALL Select_pc_info: trying 'ky'
2000-11-21-23:33:43.384 raven [672] STARTALL Select_pc_info: [1] 'kyraw=kyraw'
2000-11-21-23:33:43.385 raven [672] STARTALL Select_pc_info: trying 'kyraw'
2000-11-21-23:33:43.385 raven [672] STARTALL Select_pc_info: [2] 'lp=ky'
2000-11-21-23:33:43.385 raven [672] STARTALL Select_pc_info: trying 'lp'
2000-11-21-23:33:43.386 raven [672] STARTALL Select_pc_info: [3] 'raw=kyraw'
2000-11-21-23:33:43.386 raven [672] STARTALL Select_pc_info: trying 'raw'
2000-11-21-23:33:43.387 raven [672] STARTALL Select_pc_info: returning '<NULL>'
2000-11-21-23:33:43.387 raven [672] STARTALL Select_pc_info: looking for '*', depth 0
2000-11-21-23:33:43.387 raven [672] STARTALL Select_pc_info: [0] 'ky=ky'
2000-11-21-23:33:43.388 raven [672] STARTALL Select_pc_info: trying 'ky'
2000-11-21-23:33:43.388 raven [672] STARTALL Select_pc_info: [1] 'kyraw=kyraw'
2000-11-21-23:33:43.389 raven [672] STARTALL Select_pc_info: trying 'kyraw'
2000-11-21-23:33:43.389 raven [672] STARTALL Select_pc_info: [2] 'lp=ky'
2000-11-21-23:33:43.389 raven [672] STARTALL Select_pc_info: trying 'lp'
2000-11-21-23:33:43.390 raven [672] STARTALL Select_pc_info: [3] 'raw=kyraw'
2000-11-21-23:33:43.390 raven [672] STARTALL Select_pc_info: trying 'raw'
2000-11-21-23:33:43.391 raven [672] STARTALL Select_pc_info: returning '<NULL>'
2000-11-21-23:33:43.391 raven [672] STARTALL Dump_line_list:
Get_all_printcap_entries- All_line_list - 0x80ab9e0, count 2, max 102, list 0x80b0160
2000-11-21-23:33:43.392 raven [672] STARTALL [ 0] 0x80af2e8 ='ky'
2000-11-21-23:33:43.392 raven [672] STARTALL [ 1] 0x80af2f8 ='kyraw'
2000-11-21-23:33:43.392 raven [672] STARTALL Service_all: checking 'ky'
2000-11-21-23:33:43.393 raven [672] STARTALL Reset_config: starting
2000-11-21-23:33:43.396 raven [672] STARTALL ky: Fix_Rm_Rp_info: printer name 'ky'
2000-11-21-23:33:43.396 raven [672] STARTALL ky: Select_pc_info: looking for 'ky',
depth 0
2000-11-21-23:33:43.397 raven [672] STARTALL ky: Select_pc_info: found name 'ky'
2000-11-21-23:33:43.398 raven [672] STARTALL ky: Select_pc_info: returning 'ky'
2000-11-21-23:33:43.401 raven [672] STARTALL ky: Fix_Rm_Rp_info: Printer 'ky', Queue
'ky', Lp '/dev/lp0', Rp '<NULL>', Rh '<NULL>'
2000-11-21-23:33:43.402 raven [672] STARTALL ky: Setup_printer: printer now 'ky',
spool dir '/var/spool/lpd/ky'
2000-11-21-23:33:43.403 raven [672] STARTALL ky: Service_all: checking 'ky', path
'/var/spool/lpd/ky/ky'
2000-11-21-23:33:43.405 raven [672] STARTALL Service_all: checking 'kyraw'
2000-11-21-23:33:43.405 raven [672] STARTALL Reset_config: starting
2000-11-21-23:33:43.408 raven [672] STARTALL kyraw: Fix_Rm_Rp_info: printer name
'kyraw'
2000-11-21-23:33:43.408 raven [672] STARTALL kyraw: Select_pc_info: looking for
'kyraw', depth 0
2000-11-21-23:33:43.409 raven [672] STARTALL kyraw: Select_pc_info: found name
'kyraw'
2000-11-21-23:33:43.410 raven [672] STARTALL kyraw: Select_pc_info: returning 'kyraw'
2000-11-21-23:33:43.413 raven [672] STARTALL kyraw: Fix_Rm_Rp_info: Printer 'kyraw',
Queue 'kyraw', Lp '/dev/lp0', Rp '<NULL>', Rh '<NULL>'
2000-11-21-23:33:43.414 raven [672] STARTALL kyraw: Setup_printer: printer now
'kyraw', spool dir '/var/spool/lpd/kyraw'
2000-11-21-23:33:43.415 raven [672] STARTALL kyraw: Service_all: checking 'kyraw',
path '/var/spool/lpd/kyraw/kyraw'
2000-11-21-23:33:43.416 raven [671] Waiting lpd: select returned 1, error 'No Error'
2000-11-21-23:33:43.417 raven [671] Waiting lpd: fd 8 readable
2000-11-21-23:33:43.417 raven [671] Waiting Read_server_status: starting
2000-11-21-23:33:43.417 raven [671] Waiting Read_server_status: select status 1
2000-11-21-23:33:43.418 raven [671] Waiting Read_server_status: read status 0
2000-11-21-23:33:43.418 raven [671] Waiting lpd: LOOP START
2000-11-21-23:33:43.419 raven [671] Waiting Get_max_servers: getrlimit returns 256
2000-11-21-23:33:43.419 raven [671] Waiting Get_max_servers: returning 128
2000-11-21-23:33:43.420 raven [671] Waiting lpd: max_servers 128, active 1
2000-11-21-23:33:43.420 raven [671] Waiting lpd: fork_failed 8, processes 1 active,
max 128
2000-11-21-23:33:43.420 raven [671] Waiting lpd: starting select timeout 'yes', 600
sec, max_socks 7
2000-11-21-23:33:43.421 raven [672] STARTALL kyraw: cleanup: done, exit(0)
2000-11-21-23:33:43.424 raven [671] Waiting lpd: select returned -1, error
'Interrupted system call'
2000-11-21-23:33:43.424 raven [671] Waiting lpd: fd 5 readable
2000-11-21-23:33:43.425 raven [671] Waiting lpd: fd 6 readable
2000-11-21-23:33:43.425 raven [671] Waiting lpd: LOOP START
2000-11-21-23:33:43.426 raven [671] Waiting lpd: process 672, status 'exit status 0
(JSUCC)'
2000-11-21-23:33:43.426 raven [671] Waiting Get_max_servers: getrlimit returns 256
2000-11-21-23:33:43.426 raven [671] Waiting Get_max_servers: returning 128
2000-11-21-23:33:43.427 raven [671] Waiting lpd: max_servers 128, active 0
2000-11-21-23:33:43.427 raven [671] Waiting lpd: fork_failed 1, processes 0 active,
max 128
2000-11-21-23:33:43.428 raven [671] Waiting lpd: starting select timeout 'yes', 600
sec, max_socks 7
2000-11-21-23:33:43.428 raven [671] Waiting lpd: select returned 1, error 'No Error'
2000-11-21-23:33:43.429 raven [671] Waiting lpd: fd 6 readable
2000-11-21-23:33:43.429 raven [671] Waiting Read_server_status: starting
2000-11-21-23:33:43.429 raven [671] Waiting Read_server_status: select status 1
2000-11-21-23:33:43.430 raven [671] Waiting Read_server_status: read status 1
2000-11-21-23:33:43.430 raven [671] Waiting Dump_line_list: Read_server_status -
input - 0xbffff7f8, count 0, max 0, list 0x0
2000-11-21-23:33:43.431 raven [671] Waiting Read_server_status: select status 0
2000-11-21-23:33:43.431 raven [671] Waiting lpd: LOOP START
2000-11-21-23:33:43.432 raven [671] Waiting Get_max_servers: getrlimit returns 256
2000-11-21-23:33:43.432 raven [671] Waiting Get_max_servers: returning 128
2000-11-21-23:33:43.432 raven [671] Waiting lpd: max_servers 128, active 0
2000-11-21-23:33:43.433 raven [671] Waiting lpd: fork_failed 1, processes 0 active,
max 128
2000-11-21-23:33:43.433 raven [671] Waiting lpd: starting select timeout 'yes', 600
sec, max_socks 7
<CTRL-C>
2000-11-21-23:33:45.677 raven [670] MAIN cleanup_INT: signal Interrupt, Errorcode 0
2000-11-21-23:33:45.679 raven [670] MAIN cleanup: done, exit(0)
2000-11-21-23:33:45.691 raven [671] Waiting cleanup_INT: signal Interrupt, Errorcode
0
2000-11-21-23:33:45.693 raven [671] Waiting cleanup: done, exit(0)