DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 21st April 2015
morophla morophla is offline
Port Guard
 
Join Date: Apr 2015
Posts: 11
Default Apache2 on startup OpenBsd 5.6

Hi!

Is there a way to replace the built in httpd "httpd_flags" in rc.config.local by Apache2 http2 on Openbsd 5.6?
Reply With Quote
  #2   (View Single Post)  
Old 21st April 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

I mentioned the rc.d script for Apache 2 here:
Quote:
Originally Posted by jggimi View Post
/etc/rc.d/apache2
I then used it later in that thread with -d (debug) and -f (force). Debug to get some output, and force because I did not have apache2_flags defined in my /etc/rc.conf.local.

To automatically start a 3rd party package using its rc.d script, you must have both a _flags variable defined (to enable the script) and the script name listed among the scripts defined by the pkg_scripts variable. The pkg_scripts variable starts 3rd party packages in the order listed (use spaces to separate package names).

One possible example, with Apache 2 being started with default flags, and that being the only 3rd party package daemon being started:
Code:
apache2_flags=
pkg_scripts=apache2
See rc.conf(5) for more information.
Reply With Quote
  #3   (View Single Post)  
Old 21st April 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

There is alsoadiscussion of this in FAQ 10.3 which may help.
Reply With Quote
Reply

Thread Tools
Display Modes

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
Barti asked about OpenBSD startup/shutdown jggimi OpenBSD General 0 17th July 2012 04:17 PM
Apache2 and PHP5 installation? joancatala OpenBSD General 0 2nd June 2011 09:44 PM
I'm sorry ... (apache2, php5, pstgresql, openbsd 4.8) Nothing2Do OpenBSD Packages and Ports 14 7th February 2011 10:09 PM
apache2.2+PHP5 edvinus OpenBSD Packages and Ports 1 29th June 2009 08:13 PM
Apache2 and Iconv disi NetBSD Installation and Upgrading 1 13th May 2008 09:07 PM


All times are GMT. The time now is 08:17 PM.


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