Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!ut-sally!im4u!milano!ables From: ables@milano.UUCP Newsgroups: net.bugs.4bsd Subject: Re: lprm hangs printer Message-ID: <1256@milano.UUCP> Date: Mon, 24-Mar-86 17:40:18 EST Article-I.D.: milano.1256 Posted: Mon Mar 24 17:40:18 1986 Date-Received: Sun, 20-Apr-86 09:56:09 EST References: <256@entropy.UUCP> <64@paisley.ac.uk> Sender: ables@milano.UUCP Organization: MCC, Austin, TX Lines: 26 Summary: the real fix > After lprm on an active job lpd was restarted with printer {hostname} > In our case paisley. > I added the alias paisley in /etc/printcap and it seemed to work ok. > Thus: > > lp|paisley|local line printer:\ > :lp=/dev/lp:sd=/usr/spool/lpd:lf=/usr/adm/lpd-errs:\ > :rf=/usr/ucb/fpr: Well, this will work, but it doesn't really fix the problem, it just patches the symptom. The problem is in the code for lprm, he tries to restart the printer and uses the variable containing the hostname INSTEAD of the variable containing the printer name. It's pretty obvious when you look through the code. The fix above DOES fix the problem, though, and if you're not into patching code, and if it doesn't cause any other problems, it'll do. The REAL fix, is to /usr/src/usr.lib/lpr/rmjob.c as follows: 92c92 < if (assasinated && !startdaemon(host)) --- > if (assasinated && !startdaemon(printer)) -King ARPA: ables@mcc.arpa UUCP: {ihnp4,seismo,ctvax}!ut-sally!im4u!milano!mcc-pp!ables