aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorGary Palmer <gpalmer@FreeBSD.org>1996-01-28 08:08:37 +0000
committerGary Palmer <gpalmer@FreeBSD.org>1996-01-28 08:08:37 +0000
commit60dc88f2ceeff0d05daf3dbad5f5fc201a447876 (patch)
tree7fef10531f2b8660ada02095df8619c9b6329784 /etc
parenta7ba018ad1aa0c06e5dfcd19e6baf82b8bca7e6b (diff)
downloadsrc-60dc88f2ceeff0d05daf3dbad5f5fc201a447876.tar.gz
src-60dc88f2ceeff0d05daf3dbad5f5fc201a447876.zip
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.
Notes
Notes: svn path=/head/; revision=13659
Diffstat (limited to 'etc')
-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 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, -q<n>m sets the queue scan
# time in minutes. If set to NO, don't start sendmail at all.
sendmail_flags="-bd -q30m"