summaryrefslogtreecommitdiffstats
path: root/etc/rc
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/rc
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/rc')
-rw-r--r--etc/rc11
1 files changed, 8 insertions, 3 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}
OpenPOWER on IntegriCloud