httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark McCulligh <mmccu...@visualtech.ca>
Subject Re: [users@httpd] Apache 2.0.51 start on boot
Date Fri, 24 Sep 2004 15:57:29 GMT
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


Mime
View raw message