You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Aleksei Wolff <al...@yahoo.com> on 2003/01/17 23:23:15 UTC
[users@httpd] httpd start at boot time.
Hello. Newbie question.
Whats the best way to get httpd to start at boot time?
Does anybody have a sample script?
I was thinking creating a httpd script with the simple
words /etc/sbin/apachectl start and making it part of
rc3.d. Does that sound about right or am I way off?
Thanks.
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
---------------------------------------------------------------------
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] httpd start at boot time.
Posted by "Kenny G. Dubuisson, Jr." <kd...@kcmria.com>.
Instead of criticizing people's posts...why not post something constructive?
This script works for me perfectly so there is nothing "silly" about it.
Kenny
----- Original Message -----
From: "Joshua Slive" <jo...@slive.ca>
To: <us...@httpd.apache.org>
Sent: Friday, January 17, 2003 7:21 PM
Subject: Re: [users@httpd] httpd start at boot time.
>
> On Fri, 17 Jan 2003, Kenny G. Dubuisson, Jr. wrote:
>
> > Here is part of a doc I wrote with my startup script and links on a Red
Hat
> > Linux 7.3 system:
> > k. Created an auto-start script named apache in the /etc/rc.d/init.d
> > directory with the following contents:
> > #!/bin/sh
> > case "$1" in
> > start)
> > echo -n "Starting Apache: "
>
> Isn't that kind of silly? You are just passing through all the options
> directly to apachectl. So why not just use apachectl itself as the init
> script?
>
> Joshua.
>
> ---------------------------------------------------------------------
> 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] httpd start at boot time.
Posted by Joshua Slive <jo...@slive.ca>.
On Fri, 17 Jan 2003, Kenny G. Dubuisson, Jr. wrote:
> Here is part of a doc I wrote with my startup script and links on a Red Hat
> Linux 7.3 system:
> k. Created an auto-start script named apache in the /etc/rc.d/init.d
> directory with the following contents:
> #!/bin/sh
> case "$1" in
> start)
> echo -n "Starting Apache: "
Isn't that kind of silly? You are just passing through all the options
directly to apachectl. So why not just use apachectl itself as the init
script?
Joshua.
---------------------------------------------------------------------
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] httpd start at boot time.
Posted by "Kenny G. Dubuisson, Jr." <kd...@kcmria.com>.
Here is part of a doc I wrote with my startup script and links on a Red Hat
Linux 7.3 system:
k. Created an auto-start script named apache in the /etc/rc.d/init.d
directory with the following contents:
#!/bin/sh
case "$1" in
start)
echo -n "Starting Apache: "
/usr/local/apache2/bin/apachectl start
echo
;;
stop)
echo -n "Stopping Apache: "
/usr/local/apache2/bin/apachectl stop
echo
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0
l. Created startup (S99apache) and shutdown (K99apache) symbolic links in
the /etc/rc.d/rc5.d directory.
m. Rebooted to check the availability of Apache. It was running (checked
via http://localhost).
Hope this helps,
Kenny
----- Original Message -----
From: "Aleksei Wolff" <al...@yahoo.com>
To: <us...@httpd.apache.org>
Sent: Friday, January 17, 2003 4:23 PM
Subject: [users@httpd] httpd start at boot time.
> Hello. Newbie question.
>
> Whats the best way to get httpd to start at boot time?
>
> Does anybody have a sample script?
>
>
> I was thinking creating a httpd script with the simple
> words /etc/sbin/apachectl start and making it part of
> rc3.d. Does that sound about right or am I way off?
>
> Thanks.
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> ---------------------------------------------------------------------
> 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] httpd start at boot time.
Posted by Joshua Slive <jo...@slive.ca>.
On Fri, 17 Jan 2003, Aleksei Wolff wrote:
> Hello. Newbie question.
>
> Whats the best way to get httpd to start at boot time?
>
> Does anybody have a sample script?
>
>
> I was thinking creating a httpd script with the simple
> words /etc/sbin/apachectl start and making it part of
> rc3.d. Does that sound about right or am I way off?
The answer to this question depends on the OS, which you haven't
specified.
But apachectl is itself a SysV-style init script. So usually you can
simply symlink that script into the appropriate directory to get apache
going at startup.
Joshua.
---------------------------------------------------------------------
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