Your issue was that the httpd
daemon was given an invalid command line argument (the string YES
) when started using rcctl
and therefore would not start properly.
The only "special" value for the XXX_flags
variables in /etc/rc.conf.local
is the two letter string NO
, which disables the corresponding service. This is the default value for most of OpenBSD's services (see /etc/rc.conf
, which you should never modify).
A service is enabled using rcctl
as root with e.g.
# rcctl enable httpd
In the case of httpd
, this will write the line
httpd_flags=
into /etc/rc.conf.local
, which will enable the httpd
service.
The value of httpd_flags
will be passed to the actual httpd
daemon upon starting it. You could for example make it read an alternative configuration file with
httpd_flags=-f /etc/httpd.conf.local
rcctl
can be used to modify /etc/rc.conf.local
like this:
# rcctl set httpd flags -f /etc/httpd.conf.local
It's preferable to use rcctl
over doing modifications to /etc/rc.conf.local
directly with an editor.
Best Answer
One often-overlooked easy way is to do the install over a serial port. That assumes the machine has a serial port, which is not always the case.
I know, you will say "but my machine doesn't do a serial port console". That doesn't matter. There are two ways to tell OpenBSD to use a serial console, the first, most useful in doing a fresh install from a CD is to use the boot loader:
The second is to put these same parameters in
/etc/boot.conf
.Then you can just log your terminal to a file, or cut and paste from putty, etc. I have some machines that "don't do serial consoles" booting this way, and unless there is a boot failure on the BIOS level, it works great.
If you are using
tip
, you can start recording a session by setting the variablescript
. You set a variable in tip by issuing~
s
.The default file name is
tip.record
. You can change that name by setting therecord
variable. The default recording includes non-printable characters, you can stoptip
from doing that by setting thebeautify
variable.You can also create a
.tiprc
file in your home directory to set these variables for you on any tip session.