Bug 22496

Summary: lpr does not startup after `lprm`
Product: [Retired] Red Hat Linux Reporter: Need Real Name <alz27>
Component: lprAssignee: Crutcher Dunnavant <crutcher>
Status: CLOSED WONTFIX QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-12-19 12:15:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Need Real Name 2000-12-19 12:15:07 UTC
$ rpm -q lpr
lpr-0.50-5

lprm reported :
cannot dequeue dfA488psylab.unn.ac.ru
cfA488psylab.unn.ac.ru dequeued
lprm: connect: Connection refused
lprm: lp: cannot restart printer daemon

In source code i see next sequence:
1. Kill daemon with SIGINT (rmjob.c:119)
2. lpd call mcleanup (lpd.c:173)
3. mcleanup() remove _PATH_SOCKETNAME (lpd.c:290)
4. after kill job LPRM call startdaemon (rmjob.c:134)
5. startdaemon try bind with _PATH_SOCKETNAME (startdaemon.c:69)
but it was deleted in step 3 (!!!!)

and work string 71 in startdaemon.c with results (see below).