is there any way that without root config , the apache server starts

hi All,
I want to restart the apache server everytime the mahcine boots. Now I
dont have any control over hte machine boot time either.
So asked?
-Parag
parag_paul [ Fr, 04 April 2008 19:23 ] [ ID #1935562 ]

Re: is there any way that without root config , the apache serverstarts everytime

parag_paul [at] hotmail.com wrote:
> I want to restart the apache server everytime the mahcine boots. Now I
> dont have any control over hte machine boot time either.

if you're starting apache (or any other process) as a "normal" user under unix,
you can use the [at] reboot scheduling string (a feature of vixie cron, which is the
most widely-used cron daemon) to start a process at reboot. "man 5 crontab" for
details, or here's a summary in a blog:
http://jeremy.zawodny.com/blog/archives/001021.html

the crontab entry for that would look something like:
[at] reboot /path/to/your/apache/bin/apachectl restart

another option (more complicated, but it has broader benefits) is to monitor the
web server from a service like nagios, and configure that monitoring application
to log on and restart your apache process any time the service is unavailable
(that would include any reboot where the service becomes unavailable):

http://www.onlamp.com/pub/a/onlamp/2006/05/25/self-healing-n etworks.html
http://www.cyberciti.biz/tips/howto-monitor-and-restart-linu x-unix-service.html

--sean

--
sean dreilinger - http://durak.org/sean/
sean dreilinger [ Fr, 04 April 2008 20:44 ] [ ID #1936187 ]

Re: is there any way that without root config , the apache server

On Apr 4, 11:44=A0pm, sean dreilinger <sean-use... [at] durak.org> wrote:
> parag_p... [at] hotmail.com wrote:
> > I want to restart the apache server everytime the mahcine boots. Now I
> > dont have any control over hte machine boot time either.
>
> if you're starting apache (or any other process) as a "normal" user under =
unix,
> you can use the [at] reboot scheduling string (a feature of vixie cron, which =
is the
> most widely-used cron daemon) to start a process at reboot. "man 5 crontab=
" for
> details, or here's a summary in a blog:http://jeremy.zawodny.com/blog/arch=
ives/001021.html
>
> the crontab entry for that would look something like:
> [at] reboot /path/to/your/apache/bin/apachectl restart
>
> another option (more complicated, but it has broader benefits) is to monit=
or the
> web server from a service like nagios, and configure that monitoring appli=
cation
> to log on and restart your apache process any time the service is unavaila=
ble
> (that would include any reboot where the service becomes unavailable):
>
> http://www.onlamp.com/pub/a/onlamp/2006/05/25/self-healing-n etworks.htmlht=
tp://www.cyberciti.biz/tips/howto-monitor-and-restart-linux- unix-se...
>
> --sean
>
> --
> sean dreilinger -http://durak.org/sean/

that is cool
thanks a lot
parag_paul [ Mo, 07 April 2008 21:33 ] [ ID #1937195 ]
Webserver » alt.apache.configuration » is there any way that without root config , the apache server starts

Vorheriges Thema: LDAP Authentication Error: auth_ldap authenticate: user <user>
Nächstes Thema: 404 Configuration