DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 30th October 2016
psypro psypro is offline
Package Pilot
 
Join Date: Mar 2016
Location: Continent:Europe
Posts: 156
Default httpd rc.conf.local question

Why does not httpd start when booting.

Afther boot I just have to enter

/etc/rc.d/httpd start
ok

It start with out problem.
What is wrong with my /etc/rc.conf.local
unbound, dhcpd, and php starts just fine.

/etc/rc.conf.local
dhcpd_flags=
httpd_flags=""
pkg_scripts=transmission_daemon php70_fpm httpd
unbound_flags=""

I have also tried
dhcpd_flags=
httpd_flags=
pkg_scripts=transmission_daemon php70_fpm
unbound_flags=""
Reply With Quote
  #2   (View Single Post)  
Old 30th October 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

For correct provisioning:
  • The pkg_scripts variable is only used for third party packages.
You should only need
Code:
httpd_flags=
in this file.

If the daemon fails to start, see /var/log/daemon, /var/log/messages, or the -s option of dmesg(8) for any error messages.
Reply With Quote
  #3   (View Single Post)  
Old 30th October 2016
psypro psypro is offline
Package Pilot
 
Join Date: Mar 2016
Location: Continent:Europe
Posts: 156
Default

Got it to work : )

Problem was httpd.conf.

This part works:
Code:
server "default" { 
	listen on * port 80 
}
"The server can also be configured to only listen on the primary IP address of the network interface that is a member of the “egress” group." This does NOT work for me while booting, interface get "sleeping" dont get dhcp fast enoguhe. But some seconds later dhcp is in place and register as egress group interface, so it allways did work if I did it manualy.

Code:
server "default" { 
	listen on egress port 80 
}
Just for the learning experience, anybody know, how to give the interface more time to get dhcp offer?

Thanks for the clarification BTW Jigggim, I have deleted the rc.conf.local file, and will re populated with content with the rcctl cmd.
Reply With Quote
  #4   (View Single Post)  
Old 30th October 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

The egress group is only defined when the routing table has a default route.

  • If you require the egress group, use static addressing rather than DHCP.
  • If you require DHCP, then use *, the intended gateway NIC, or an admin defined group.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
/etc/rc.conf.local setup and network connectiont fstef OpenBSD General 2 26th July 2015 11:12 AM
httpd.conf chroot morophla OpenBSD General 4 19th April 2015 02:07 PM
log from rc.conf.local and rc.local sdesilet OpenBSD General 1 21st January 2010 02:37 AM
Update httpd.conf IPs from DNS zones. bigb89 Programming 16 2nd December 2008 02:02 AM
httpd.conf Snoop1990 General software and network 5 29th July 2008 04:30 AM


All times are GMT. The time now is 08:15 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick