On 09/07/11 18:37, Dmitrij D. Czarkoff wrote: > Hello! > > When I start httpd with rc.d script, it silently fails to start. Manual > command "sudo /etc/rc.d/httpd start" also fails. I have no httpd_flags > specified and I start httpd as the last of rc_scripts. > > At the same time "sudo apachectl start" start the server. Is there anything I > am missing?
yep. 1) system daemons must have a corresponding <daemon>_flags variable defined in rc.conf.local. All the files in /etc/rc.d are executed at boot, only the daemons named with _flags variables actually "stick" and run. The idea is, if you want the daemon to start at boot, you want to know that all the pieces are in place for it to happen at boot, otherwise, just start the process manually (as you did) 2) rc_scripts is history. It's now "pkg_scripts" for packages, and has nothing to do with system daemons at all. * pkg_scripts controls packages * rc.conf.local controls daemons included with OpenBSD Nick.