#199094 lprng: Doesn't want to have lpd running all the time

Package:
lprng
Source:
lprng
Description:
lpr/lpd printer spooling system
Submitter:
Dmitry Rutsky
Date:
2014-08-29 21:45:08 UTC
Severity:
wishlist
#199094#5
Date:
2003-06-27 22:39:36 UTC
From:
To:
I think there should be a way to start the daemon only when it is needed.  Of
course, constant run is completely acceptable for servers, but for a home
computer, where printing is occasional and rare, most of the time it is just
a redundant process slot, about 350K of virtual memory and bootup entry.  Not
very much to worry about, though.

I couldn't figure out how to do it from the lprng documentation.  AFAIK, all
thegood daemons which perform server functions for occasional tasks can run via
inetd;  lpd doesn't seem to be able to do so.

#199094#10
Date:
2003-09-12 00:10:01 UTC
From:
To:
tags 199094 upstream
tags 199094 forwarded lprng@lprng.com
thankyou

Hello Dmitry,
  It is an interesting idea to have lpd run via inetd.  LPRng is really
more of an industrial strength server-type mail spooler.  However I have
passed your suggestion onto the LPRng upstream maintainers for them to
consider.

  - Craig

#199094#17
Date:
2003-09-12 00:10:01 UTC
From:
To:
tags 199094 upstream
tags 199094 forwarded lprng@lprng.com
thankyou

Hello Dmitry,
  It is an interesting idea to have lpd run via inetd.  LPRng is really
more of an industrial strength server-type mail spooler.  However I have
passed your suggestion onto the LPRng upstream maintainers for them to
consider.

  - Craig

#199094#22
Date:
2008-04-04 14:09:02 UTC
From:
To:
Is lprng still developed at all?

Here is the answer to Craig's question on lprng mailing list:


One of the problems  that other severs do not have to deal with is
restarting operations.  The print spooler is considered broken
if, after rebooting, printing of jobs in the spool queue are not
automatically started.

After several years and (literally) hundreds of queiries about this
I ripped out the inetd support in the old PLP software.

Having said this,  if you want to add it, do the folllwing:

a) /etc/lpd.conf - set unix_socket_path to 'no' or '' to
    suppress the use of the Unix socket (/var/run/lpd)

b) add a '-i' option oto lpd.c that will cause:
     fd 1, 2 to be opened to /dev/null
     dup fd 0 to Listen_FD
     close fd 0 and dup fd 1 to fd 0
     skip the socket/bind/listen for the TCP/IP lpd listen
     socket.

     Remove the lpd startup code from wherever it is hiding.
     Add entry to /etc/inetd  with 'wait' for the mode, and -i option.

     killall lpd
     killall -HUP inetd   (or killal -pHUP xinetd)

     Test. Rinse. Repeat. Reboot. Test. Rinse... etc.


Good luck.  If you do this,  perhaps you can post patches
and some documentation.  Then if other folks want to do
this,  we can have some information for them.



Tomasz Chmielewski
http://wpkg.org

#199094#27
Date:
2014-08-29 21:44:14 UTC
From:
To:
Lieber Bewerber,

wir sind eine Arbeitsvermittlungsagentur und freuen uns Ihnen einige für Sie passende Jobs vorschlagen zu können.

Sind Sie nicht zu 100 Prozent ausgelastet und wollen nebenbei etwas dazu verdienen?
Sind Sie in Rente oder arbeitslos?
Wären Sie gern Ihr eigener Chef?
Möchten Sie Ihre Beschäftigungszeit und Ihren Beschäftigungsplatz selbst bestimmen?

Dann haben wir sicherlich was passendes für Sie.

Wir vermitteln Arbeitsstellen europaweit und haben auch etwas für Sie in Ihrer Umgebung, und die Bezahlung beträgt durchschnittlich ab 20 Eu die Stunde.

Sollten Sie an dieser Arbeit Interesse haben, dann mailen Sie uns ein kurzes Bewerbungsschreiben an JayneOkeefet@marchmail.com und Sie kriegen weitere Infos.

Mit besten Grüßen

DKT GmbH