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.
This commit is contained in:
Paul Traina 1997-06-18 16:01:19 +00:00
parent b5f058fc9b
commit 00f2dc9363
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=26727
2 changed files with 12 additions and 5 deletions

11
etc/rc
View File

@ -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}

View File

@ -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).