Browse Source

httpd is now in the tree, and an rc.conf flag turns it on

OPENBSD_2_3
deraadt 27 years ago
parent
commit
4fe57b9e2f
3 changed files with 8 additions and 7 deletions
  1. +5
    -1
      src/etc/rc
  2. +2
    -1
      src/etc/rc.conf
  3. +1
    -5
      src/etc/rc.local

+ 5
- 1
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.68 1998/03/11 18:08:09 millert Exp $
# $OpenBSD: rc,v 1.69 1998/03/25 07:25:20 deraadt Exp $
# System startup script run by init on autoboot # System startup script run by init on autoboot
# or after single-user. # or after single-user.
@ -334,6 +334,10 @@ if [ "X${sendmail_flags}" != X"NO" -a -s /etc/sendmail.cf ]; then
echo -n ' sendmail'; /usr/sbin/sendmail ${sendmail_flags} echo -n ' sendmail'; /usr/sbin/sendmail ${sendmail_flags}
fi fi
if [ "X${httpd_flags}" != X"NO" ]; then
echo -n ' httpd'; /usr/sbin/httpd ${httpd_flags}
fi
# $smtpfwdd_flags is imported from /etc/rc.conf; # $smtpfwdd_flags is imported from /etc/rc.conf;
# If $smtpfwdd_flags == NO, smtpfwdd isn't run. # If $smtpfwdd_flags == NO, smtpfwdd isn't run.
if [ "X${smtpfwdd_flags}" != X"NO" ]; then if [ "X${smtpfwdd_flags}" != X"NO" ]; then


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

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $OpenBSD: rc.conf,v 1.16 1998/03/07 12:54:41 deraadt Exp $
# $OpenBSD: rc.conf,v 1.17 1998/03/25 07:25:21 deraadt Exp $
# set these to "NO" to turn them off. otherwise, they're used as flags # set these to "NO" to turn them off. otherwise, they're used as flags
routed_flags=NO # for 'normal' use: routed_flags="-q" routed_flags=NO # for 'normal' use: routed_flags="-q"
@ -14,6 +14,7 @@ named_flags=NO # for 'normal' use: named_flags=""
timed_flags=NO # for 'normal' use: timed_flags="" timed_flags=NO # for 'normal' use: timed_flags=""
photurisd_flags=NO # for 'normal' use: photurisd_flags="" photurisd_flags=NO # for 'normal' use: photurisd_flags=""
mopd_flags=NO # for 'normal' use: mopd_flags="-a" mopd_flags=NO # for 'normal' use: mopd_flags="-a"
httpd_flags=NO # for 'normal' use: httpd_flags=""
# set the following to "YES" to turn them on # set the following to "YES" to turn them on
rwhod=NO rwhod=NO


+ 1
- 5
src/etc/rc.local View File

@ -1,4 +1,4 @@
# $OpenBSD: rc.local,v 1.19 1998/02/02 00:29:14 dima Exp $
# $OpenBSD: rc.local,v 1.20 1998/03/25 07:25:22 deraadt Exp $
# site-specific startup actions, daemons, and other things which # site-specific startup actions, daemons, and other things which
# can be done AFTER your system goes into securemode. For actions # can be done AFTER your system goes into securemode. For actions
@ -10,10 +10,6 @@
echo -n 'starting local daemons:' echo -n 'starting local daemons:'
if [ -x /usr/local/etc/httpd/httpd ]; then
echo -n ' httpd'; /usr/local/etc/httpd/httpd
fi
if [ -x /usr/local/sbin/sshd ]; then if [ -x /usr/local/sbin/sshd ]; then
echo -n ' sshd'; /usr/local/sbin/sshd echo -n ' sshd'; /usr/local/sbin/sshd
fi fi


Loading…
Cancel
Save