<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hack Admin &#187; customization</title>
	<atom:link href="http://www.hackadmin.com/tag/customization/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hackadmin.com</link>
	<description></description>
	<lastBuildDate>Tue, 16 Mar 2010 21:31:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Adding A Custom Built Apache Installation to chkconfig</title>
		<link>http://www.hackadmin.com/2009/07/15/adding-a-custom-built-apache-installation-to-chkconfig/</link>
		<comments>http://www.hackadmin.com/2009/07/15/adding-a-custom-built-apache-installation-to-chkconfig/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 23:18:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apachectrl]]></category>
		<category><![CDATA[chkconfig]]></category>
		<category><![CDATA[customization]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[web server]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://www.hackadmin.com/?p=151</guid>
		<description><![CDATA[A few simple tips on setting up apachectrl with chkconfig in a non-standard, packaged version of apache. ]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s lots of reasons to steer away from a nicely packaged version of apache.  Most recently I needed to do this for a custom build of curl and cAres, but whatever your reason, you&#8217;ll find yourself with an apachectrl that&#8217;s not quite ready to be used with chkconfig.</p>
<p>The fix is really simple, chkconfig wants to see 2 lines in your apachectrl that tell it what it is and what to do with it.  At that point, chkconfig will recognize the service as your script name.  So here it is:</p>
<p><span id="more-151"></span></p>
<ol>
<li>Add the following lines to the top of the apachectrl script that you&#8217;ll find in the apache2/bin directory of your install.#!/bin/sh<br />
#<br />
<em># chkconfig: 35 85 15<br />
# description: Apache is a World Wide Web server.</em><br />
#<br />
# Licensed to the Apache Software Foundation (ASF) under one or more</p>
<p>The first line:<br />
# chkconfig: 35 85 15<br />
The 35 tells chkconfig you want the service running at run level 3 and run level 5.<br />
The 85 is the start priority.<br />
The 15 is the stop priority.</p>
<p>The second line:<br />
# description: Apache is a World Wide Web server.<br />
This is merely a description of the service.<br />
*note* Both lines start with a comment &#8220;#&#8221; (pound sign).</li>
<li>Once your lines are in place you can move or link your apachectrl to /etc/init.d/httpd</li>
<li>Once the script is in /etc/init.d/ you can run the following command to make it all go:<br />
<code>chkconfig httpd on</code>(this is of course assuming that you named the script in /etc/init.d/  &#8220;httpd&#8221;, if you named the script &#8220;chuck&#8221; then you&#8217;ll run: chkconfig chuck on, I think you get the point).</li>
</ol>
<p>That is all.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hackadmin.com/2009/07/15/adding-a-custom-built-apache-installation-to-chkconfig/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
