Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

Use of assignment to $[ is deprecated at /usr/local/sbin/apxs line 86. , wwwxxx vim, mysql closing table and opening table, 800c5000, setgid operation not permitted, pciehp: acpi_pciehprm on IBM, WWWXXX.DBF, 078274121, info0a ip, should prodicers of software_based services be held liable or not liable for economic injuries

Links

XODOX
Impressum

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

Posted on 2008-04-04 19:23:34 by 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

Report this message

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

Posted on 2008-04-04 20:44:51 by 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/

Report this message

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

Posted on 2008-04-07 21:33:07 by parag_paul

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

Report this message