> From [EMAIL PROTECTED] Tue Jul 11 09:00:53 2000
> Date: Tue, 11 Jul 2000 16:45:30 +0200 (CEST)
> From: Jesper Dangaard Brouer <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: LPRng: lpc reread kills lpd daemon (LPRng v.3.6.20)
>
>
> Problems with LPRng version 3.6.20.
>
> When I want to reread my printcap file, I normally use:
>
> lpc reread
>
> Which should send the printer-daemon lpd an "kill -HUP", but in
> LPRng version 3.6.20, this kills the daemon.
>
> If I do an manually "kill -HUP <pid>", on the server then it works as
> before (rereading my printcap file).
>
> Hilsen
> Jesper Brouer
>
> -------------------------------------------------------------------
> System Administrator
> Dept. of Computer Science, University of Copenhagen
> E-mail: [EMAIL PROTECTED], Direct Tel.: 353 21375
> -------------------------------------------------------------------
What OS and Version?
By the way, here is the code in LPRng/src/common/lpd_control.c:
case OP_REREAD:
if( permission == P_REJECT ){ goto noperm; }
DEBUGF(DCTRL1)( "Job_control: sending pid %d SIGHUP", Server_pid );
SNPRINTF( error, sizeof(error), "lpd server pid %d on %s, sending SI
GHUP\n",
Server_pid, FQDNHost_FQDN );
(void)kill(Server_pid,SIGHUP); <----- there is the kill
if( Write_fd_str( *sock, error ) < 0 ) cleanup(0);
goto done;
OK, why should the command line and LPC REREAD have different effects?
Patrick Powell Astart Technologies,
[EMAIL PROTECTED] 9475 Chesapeake Drive, Suite D,
Network and System San Diego, CA 92123
Consulting 858-874-6543 FAX 858-279-8424
LPRng - Print Spooler (http://www.astart.com)
-----------------------------------------------------------------------------
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------