summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgpalmer <gpalmer@FreeBSD.org>1996-01-28 08:08:37 +0000
committergpalmer <gpalmer@FreeBSD.org>1996-01-28 08:08:37 +0000
commit639086d7c7b3b0a3846d3e21c9022e1345bc5227 (patch)
tree7fef10531f2b8660ada02095df8619c9b6329784
parentcfeedcc0b640fdf770ed9bd82be705d589f3f401 (diff)
downloadFreeBSD-src-639086d7c7b3b0a3846d3e21c9022e1345bc5227.zip
FreeBSD-src-639086d7c7b3b0a3846d3e21c9022e1345bc5227.tar.gz
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.
-rw-r--r--etc/rc7
-rw-r--r--etc/sysconfig5
2 files changed, 9 insertions, 3 deletions
diff --git a/etc/rc b/etc/rc
index 73ac983..865e804 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 2bcffa6..5642d3b 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, -q<n>m sets the queue scan
# time in minutes. If set to NO, don't start sendmail at all.
sendmail_flags="-bd -q30m"
OpenPOWER on IntegriCloud