summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1997-06-18 16:01:19 +0000
committerpst <pst@FreeBSD.org>1997-06-18 16:01:19 +0000
commit8c2215a2080de8c3aedb41110271d5a27bd2ec7b (patch)
treed6ed3fa97906755d7063b3509679b28350b4a6eb /etc
parent67081988839e602766fd4a9312d0885670dc607b (diff)
downloadFreeBSD-src-8c2215a2080de8c3aedb41110271d5a27bd2ec7b.zip
FreeBSD-src-8c2215a2080de8c3aedb41110271d5a27bd2ec7b.tar.gz
Add cron_enable and inetd_enable flags to rc.conf.
WARNING: don't update rc and forget to update rc.conf, or you won't be able to telnet back into your box after a reboot.
Diffstat (limited to 'etc')
-rw-r--r--etc/rc11
-rw-r--r--etc/rc.conf6
2 files changed, 12 insertions, 5 deletions
diff --git a/etc/rc b/etc/rc
index 1cc0ca5..553464f 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: rc,v 1.127 1997/06/04 19:20:04 ache Exp $
+# $Id: rc,v 1.128 1997/06/04 20:02:57 ache Exp $
# From: @(#)rc 5.27 (Berkeley) 6/5/91
# System startup script run by init on autoboot
@@ -218,8 +218,13 @@ ldconfig ${_LDC}
# Now start up miscellaneous daemons that don't belong anywhere else
#
echo -n starting standard daemons:
-echo -n ' inetd'; inetd ${inetd_flags}
-echo -n ' cron'; cron
+if [ "X${inetd_enable}" = X"YES" ]; then
+ echo -n ' inetd'; inetd ${inetd_flags}
+fi
+
+if [ "X${cron_enable}" = X"YES" ]; then
+ echo -n ' cron'; cron
+fi
if [ "X${lpd_enable}" = X"YES" ]; then
echo -n ' printer'; lpd ${lpd_flags}
diff --git a/etc/rc.conf b/etc/rc.conf
index db4baec..d1dc1e0 100644
--- a/etc/rc.conf
+++ b/etc/rc.conf
@@ -6,7 +6,7 @@
#
# All arguments must be in double or single quotes.
#
-# $Id: rc.conf,v 1.16 1997/06/02 02:58:08 jkh Exp $
+# $Id: rc.conf,v 1.17 1997/06/02 06:43:42 markm Exp $
##############################################################
### Important initial Boot-time options #####################
@@ -36,7 +36,8 @@ ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration.
### Network daemon (miscellaneous) & NFS options: ###
syslogd_enable="YES" # Run syslog daemon (or NO).
syslogd_flags="" # Flags to syslogd (if enabled).
-inetd_flags="" # Optional flags to inetd (always enabled).
+inetd_enable="YES" # Run the network daemon displatcher (or NO).
+inetd_flags="" # Optional flags to inetd
named_enable="NO" # Run named, the DNS server (or NO).
named_flags="-b /etc/namedb/named.boot" # Flags to named (if enabled).
kerberos_server_enable="NO" # Run a kerberos master server (or NO).
@@ -116,6 +117,7 @@ moused_flags="" # Any additional flags to moused.
### Miscellaneous administrative options ###################
##############################################################
+cron_enable="YES" # Run the periodic job daemon
lpd_enable="YES" # Run the line printer daemon
lpd_flags="" # Flags to lpd (if enabled).
sendmail_enable="YES" # Run the sendmail daemon (or NO).
OpenPOWER on IntegriCloud