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

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

am 04.04.2008 19:23:34 von parag_paul

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

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

am 04.04.2008 20:44:51 von sean dreilinger

parag_paul@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 @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:
@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/

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

am 07.04.2008 21:33:07 von parag_paul

On Apr 4, 11:44=A0pm, sean dreilinger wrote:
> parag_p...@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 @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:
> @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