From 60dc88f2ceeff0d05daf3dbad5f5fc201a447876 Mon Sep 17 00:00:00 2001 From: Gary Palmer Date: Sun, 28 Jan 1996 08:08:37 +0000 Subject: [PATCH] Add (at long last) an option to say if you want to run the printer daemon (lpd) or not. Set to run it by default. --- etc/rc | 7 +++++-- etc/sysconfig | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/etc/rc b/etc/rc index 73ac98327feb..865e804f493f 100644 --- a/etc/rc +++ b/etc/rc @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: rc,v 1.80 1995/12/28 01:24:04 jkh Exp $ +# $Id: rc,v 1.81 1996/01/16 08:04:06 graichen Exp $ # From: @(#)rc 5.27 (Berkeley) 6/5/91 # System startup script run by init on autoboot @@ -269,7 +269,10 @@ fi # echo -n standard daemons: echo -n ' cron'; cron -echo -n ' printer'; lpd + +if [ "X${lpd}" != X"NO" -a -x /usr/sbin/lpd ]; then + echo -n ' printer'; lpd +fi # $sendmail_flags is imported from /etc/sysconfig; # if $sendmail_flags is something other than NO, sendmail is run. diff --git a/etc/sysconfig b/etc/sysconfig index 2bcffa6c641b..5642d3b7540c 100644 --- a/etc/sysconfig +++ b/etc/sysconfig @@ -4,7 +4,7 @@ # This is sysconfig - a file full of useful variables that you can set # to change the default startup behavior of your system. # -# $Id: sysconfig,v 1.30 1996/01/05 17:00:27 bde Exp $ +# $Id: sysconfig,v 1.31 1996/01/06 20:49:18 jkh Exp $ ######################### Start Of Local Configuration Section ########### @@ -128,6 +128,9 @@ ntpdate="NO" # Set to YES if you want to run rwhod rwhod=NO +# Set to NO if don't want to run lpd +lpd=YES + # Default sendmail flags. -bd is pretty mandatory, -qm sets the queue scan # time in minutes. If set to NO, don't start sendmail at all. sendmail_flags="-bd -q30m"