Browse Source

Back-out use of apachectl to start httpd:

1) It's one more dependency in /etc/rc
2) It's one more script that starts from /etc/rc (slowdown)
3) We're only going to be starting httpd in /etc/rc anyway (no other
weird operations), so there's no reason to force a change in rc.conf
4) apachectl(8) doesn't mention "startssl" directive
5) Admins can use apachectl to manage httpd regardless of how the
latter was started
Thanks to fgs@ for yelling about this :-)
OPENBSD_2_9
angelos 23 years ago
parent
commit
33523770b4
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      src/etc/rc
  2. +2
    -2
      src/etc/rc.conf

+ 2
- 2
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.159 2000/12/30 06:51:09 angelos Exp $
# $OpenBSD: rc,v 1.160 2000/12/30 07:59:27 angelos Exp $
# System startup script run by init on autoboot
# or after single-user.
@ -447,7 +447,7 @@ fi
if [ "X${httpd_flags}" != X"NO" ]; then
# Clean up left-over httpd locks
rm -f /var/www/logs/{ssl_mutex,httpd.lock,accept.lock}.*
echo -n ' httpd'; /usr/sbin/apachectl ${httpd_flags}
echo -n ' httpd'; /usr/sbin/httpd ${httpd_flags}
fi
if [ "X${ftpd_flags}" != X"NO" ]; then


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

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $OpenBSD: rc.conf,v 1.54 2000/12/30 06:51:09 angelos Exp $
# $OpenBSD: rc.conf,v 1.55 2000/12/30 07:59:27 angelos Exp $
# set these to "NO" to turn them off. otherwise, they're used as flags
routed_flags=NO # for normal use: "-q"
@ -18,7 +18,7 @@ ntpdate_flags=NO # for normal use: NTP server; run before ntpd starts
photurisd_flags=NO # for normal use: ""
isakmpd_flags=NO # for normal use: ""
mopd_flags=NO # for normal use: "-a"
httpd_flags=NO # for normal use: "start" (or "startssl" after reading ssl(8))
httpd_flags=NO # for normal use: "" (or "-DSSL" after reading ssl(8))
apmd_flags=NO # for normal use: ""
dhcpd_flags=NO # for normal use: "-q"
rtadvd_flags=NO # for normal use: list of interfaces


Loading…
Cancel
Save