[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using rc to start a webserver
Saad KADHI wrote:
>Hello
>
>> I'm hoping someone can help me with starting my webserver (not Xitami) at
>> bootup.
>> The script that I'd use under Linux doesn't look like it'll work at all,
>> and looking through the rc man page doesn't help much.
>
>you can put some shell scripting to startup the webserver @ the end of
>/etc/rc.local or create a custom file and call it from rc.conf (there is a
>parameter for that).
All you should have to do is edit /etc/rc.conf and remove NO beside
httpd_flags. /etc/rc checks for NO, and starts httpd if it's not set to NO.
To enable SSL[1] mode, just replace NO with -DSSL.
Brian
[1] http://www.openbsd.org/faq/faq10.html#10.6