You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mark McCulligh <mm...@visualtech.ca> on 2004/09/21 14:53:18 UTC

[users@httpd] Apache 2.0.51 start on boot

Hi Group,

I just installed Apache 2.0.51 on Fedora Core 2. It is running fine, now 
I want to auto start it on boot. I have cp apachectl to /etc/init.d but 
was wondering what runlevel do I had it add it to as it doesn't have a 
chkconfig.

Thanks,
Mark.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache 2.0.51 start on boot

Posted by Jonathan Mangin <jo...@comcast.net>.
Traditionally, run level 3 is "multiuser w/networking".


----- Original Message ----- 
From: "Mark McCulligh" <mm...@visualtech.ca>
To: <us...@httpd.apache.org>
Sent: Tuesday, September 21, 2004 9:15 AM
Subject: Re: [users@httpd] Apache 2.0.51 start on boot


> When I ran the chkconfig command I got this message
>
> "service httpd does not support chkconfig"
>
> What do I try now?
>
> Thanks again,
> Mark.
>
>
> Haq wrote:
>
> >Hi,
> >    Run this cmd
> >chkconfig --level 2345 httpd on
> >
> >Hope this will help
> >
> >Haq
> >----- Original Message ----- 
> >From: "Mark McCulligh" <mm...@visualtech.ca>
> >To: <us...@httpd.apache.org>
> >Sent: Tuesday, September 21, 2004 3:53 PM
> >Subject: [users@httpd] Apache 2.0.51 start on boot
> >
> >
> >
> >
> >>Hi Group,
> >>
> >>I just installed Apache 2.0.51 on Fedora Core 2. It is running fine, now
> >>I want to auto start it on boot. I have cp apachectl to /etc/init.d but
> >>was wondering what runlevel do I had it add it to as it doesn't have a
> >>chkconfig.
> >>
> >>Thanks,
> >>Mark.
> >>
> >>---------------------------------------------------------------------
> >>The official User-To-User support forum of the Apache HTTP Server
Project.
> >>See <URL:http://httpd.apache.org/userslist.html> for more info.
> >>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> >>For additional commands, e-mail: users-help@httpd.apache.org
> >>
> >>
> >>
> >
> >
> >---------------------------------------------------------------------
> >The official User-To-User support forum of the Apache HTTP Server
Project.
> >See <URL:http://httpd.apache.org/userslist.html> for more info.
> >To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> >For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache 2.0.51 start on boot

Posted by Patrick Boutilier <bo...@ednet.ns.ca>.

Mark McCulligh wrote:
> When I ran the chkconfig command I got this message
> 
> "service httpd does not support chkconfig"
> 
> What do I try now?

Use the init script I sent earlier, not apachectl .


> 
> Thanks again,
> Mark.
> 
> 
> Haq wrote:
> 
>> Hi,
>>    Run this cmd
>> chkconfig --level 2345 httpd on
>>
>> Hope this will help
>>
>> Haq
>> ----- Original Message ----- From: "Mark McCulligh" 
>> <mm...@visualtech.ca>
>> To: <us...@httpd.apache.org>
>> Sent: Tuesday, September 21, 2004 3:53 PM
>> Subject: [users@httpd] Apache 2.0.51 start on boot
><snip>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache 2.0.51 start on boot

Posted by Mark McCulligh <mm...@visualtech.ca>.
When I ran the chkconfig command I got this message

"service httpd does not support chkconfig"

What do I try now?

Thanks again,
Mark.


Haq wrote:

>Hi,
>    Run this cmd
>chkconfig --level 2345 httpd on
>
>Hope this will help
>
>Haq
>----- Original Message ----- 
>From: "Mark McCulligh" <mm...@visualtech.ca>
>To: <us...@httpd.apache.org>
>Sent: Tuesday, September 21, 2004 3:53 PM
>Subject: [users@httpd] Apache 2.0.51 start on boot
>
>
>  
>
>>Hi Group,
>>
>>I just installed Apache 2.0.51 on Fedora Core 2. It is running fine, now
>>I want to auto start it on boot. I have cp apachectl to /etc/init.d but
>>was wondering what runlevel do I had it add it to as it doesn't have a
>>chkconfig.
>>
>>Thanks,
>>Mark.
>>
>>---------------------------------------------------------------------
>>The official User-To-User support forum of the Apache HTTP Server Project.
>>See <URL:http://httpd.apache.org/userslist.html> for more info.
>>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>>For additional commands, e-mail: users-help@httpd.apache.org
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>  
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache 2.0.51 start on boot

Posted by Haq <ha...@sahara.com.sa>.
Hi,
    Run this cmd
chkconfig --level 2345 httpd on

Hope this will help

Haq
----- Original Message ----- 
From: "Mark McCulligh" <mm...@visualtech.ca>
To: <us...@httpd.apache.org>
Sent: Tuesday, September 21, 2004 3:53 PM
Subject: [users@httpd] Apache 2.0.51 start on boot


> Hi Group,
>
> I just installed Apache 2.0.51 on Fedora Core 2. It is running fine, now
> I want to auto start it on boot. I have cp apachectl to /etc/init.d but
> was wondering what runlevel do I had it add it to as it doesn't have a
> chkconfig.
>
> Thanks,
> Mark.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache 2.0.51 start on boot

Posted by Mark McCulligh <mm...@visualtech.ca>.
Thanks Patrick for this auto start script for Apache a couple days ago. 
Works get. Modified it to supprt SSL and configtest.

Mark.

Patrick Boutilier wrote:

>
>
> On 09/21/2004 09:53 AM, Mark McCulligh wrote:
>
>> Hi Group,
>>
>> I just installed Apache 2.0.51 on Fedora Core 2. It is running fine, 
>> now I want to auto start it on boot. I have cp apachectl to 
>> /etc/init.d but was wondering what runlevel do I had it add it to as 
>> it doesn't have a chkconfig.
>
>
> Try using the following as your init script (/etc/init.d/httpd) . 
> Provide the correct path to apachectl.
>
>
>
>
> #!/bin/sh
> #
> # Startup script for the Apache Web Server
> #
> # chkconfig: 345 85 15
> # description: Apache is a World Wide Web server.  It is used to serve \
> #              HTML files and CGI.
> # processname: httpd
> # pidfile: /var/run/httpd.pid
> # config: /etc/httpd/conf/access.conf
> # config: /etc/httpd/conf/httpd.conf
> # config: /etc/httpd/conf/srm.conf
>
>
> # Source function library.
> . /etc/rc.d/init.d/functions
>
> # See how we were called.
> case "$1" in
>   start)
>         echo -n "Starting httpd: "
>         /usr/local/apache2/bin/apachectl start
>         echo
>         ;;
>   stop)
>         echo -n "Shutting down http: "
>         /usr/local/apache2/bin/apachectl stop
>         echo
>         ;;
>   status)
>         status httpd
>         ;;
>   restart)
>         $0 stop
>         $0 start
>         ;;
>   reload)
>         echo -n "Reloading httpd: "
>         /usr/local/apache2/bin/apachectl restart
>         echo
>         ;;
>   *)
>         echo "Usage: $0 {start|stop|restart|reload|status}"
>         exit 1
> esac
>
> exit 0
>
>
>>
>> Thanks,
>> Mark.
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server 
>> Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server 
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache 2.0.51 start on boot

Posted by Patrick Boutilier <bo...@ednet.ns.ca>.

On 09/21/2004 09:53 AM, Mark McCulligh wrote:
> Hi Group,
> 
> I just installed Apache 2.0.51 on Fedora Core 2. It is running fine, now 
> I want to auto start it on boot. I have cp apachectl to /etc/init.d but 
> was wondering what runlevel do I had it add it to as it doesn't have a 
> chkconfig.

Try using the following as your init script (/etc/init.d/httpd) . 
Provide the correct path to apachectl.




#!/bin/sh
#
# Startup script for the Apache Web Server
#
# chkconfig: 345 85 15
# description: Apache is a World Wide Web server.  It is used to serve \
#              HTML files and CGI.
# processname: httpd
# pidfile: /var/run/httpd.pid
# config: /etc/httpd/conf/access.conf
# config: /etc/httpd/conf/httpd.conf
# config: /etc/httpd/conf/srm.conf


# Source function library.
. /etc/rc.d/init.d/functions

# See how we were called.
case "$1" in
   start)
         echo -n "Starting httpd: "
         /usr/local/apache2/bin/apachectl start
         echo
         ;;
   stop)
         echo -n "Shutting down http: "
         /usr/local/apache2/bin/apachectl stop
         echo
         ;;
   status)
         status httpd
         ;;
   restart)
         $0 stop
         $0 start
         ;;
   reload)
         echo -n "Reloading httpd: "
         /usr/local/apache2/bin/apachectl restart
         echo
         ;;
   *)
         echo "Usage: $0 {start|stop|restart|reload|status}"
         exit 1
esac

exit 0


> 
> Thanks,
> Mark.
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org