Browse Source

Add option for running ftpd out of rc.

OPENBSD_2_5
downsj 26 years ago
parent
commit
5a392362ae
2 changed files with 9 additions and 2 deletions
  1. +5
    -1
      src/etc/rc
  2. +4
    -1
      src/etc/rc.conf

+ 5
- 1
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.92 1998/11/03 05:10:41 downsj Exp $
# $OpenBSD: rc,v 1.93 1998/11/11 09:22:49 downsj Exp $
# System startup script run by init on autoboot
# or after single-user.
@ -373,6 +373,10 @@ if [ "X${httpd_flags}" != X"NO" ]; then
echo -n ' httpd'; /usr/sbin/httpd ${httpd_flags}
fi
if [ "X${ftpd_flags}" != X"NO" ]; then
echo -n ' ftpd'; /usr/libexec/ftpd ${ftpd_flags}
fi
# $smtpfwdd_flags is imported from /etc/rc.conf;
# If $smtpfwdd_flags == NO, smtpfwdd isn't run.
if [ "X${smtpfwdd_flags}" != X"NO" ]; then


+ 4
- 1
src/etc/rc.conf View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $OpenBSD: rc.conf,v 1.32 1998/10/12 03:02:57 art Exp $
# $OpenBSD: rc.conf,v 1.33 1998/11/11 09:22:49 downsj Exp $
# set these to "NO" to turn them off. otherwise, they're used as flags
routed_flags=NO # for 'normal' use: routed_flags="-q"
@ -18,6 +18,9 @@ httpd_flags=NO # for 'normal' use: httpd_flags=""
apmd_flags=NO # for 'normal' use: apmd_flags=""
dhcpd_flags=NO # for 'normal' use: dhcpd_flags="-q"
# Set to NO if ftpd is running out of inetd
ftpd_flags=NO # for non-inetd use: ftpd_flags="-D"
# On some architectures, you must also disable console getty in /etc/ttys
xdm_flags=NO # for 'normal' use: xdm_flags=""


Loading…
Cancel
Save