auto start script for httpd

It should be in your DirectAdmin monitor. If your DirectAdmin monitor isn't restarting scripts that are down, then you should check to make sure that your crond is running.

Jeff
 

Great smtalk . it's wonderfull
but i have problem with Run SIM every 10 Seconds .

this is a command for run SIM evry 5 min ,
Code:
# Run SIM every 5 minutes
*/5 * * * * /usr/local/sim/sim -q >> /dev/null

how can i run SIM every 10 Seconds ?!
--------------------
Problem with RUN SIM for some of Services
Code:
[root@server etc]# sim -v
init: unrecognized service
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
[11/08/08 20:06:03]: DNS service is online.
[11/08/08 20:06:03]: SSH service is online.
[11/08/08 20:06:03]: MYSQL service is online.
[11/08/08 20:06:03]: XINET service is offline.
[11/08/08 20:06:03]: Restarted XINET service (18 XINET events today).
[11/08/08 20:06:03]: SMTP service is offline.
[11/08/08 20:06:03]: Restarted SMTP service (9 SMTP events today).
[11/08/08 20:06:03]: Ensim bandwidth manager is offline - restarting
[11/08/08 20:06:03]: EWP service is offline.
[11/08/08 20:06:03]: Ensim restart failed, could not find /etc/init.d/webppliance.
IS Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ this for HTTPD SERVICE ?

how can i fix it ?
 
It should be in your DirectAdmin monitor. If your DirectAdmin monitor isn't restarting scripts that are down, then you should check to make sure that your crond is running.

Jeff

Yes, but what if it's running but not responding? :) I think he's looking for a script that he could use on his DA server (but not a bundled-in solution). But, I may be wrong..:)
 
It should be in your DirectAdmin monitor. If your DirectAdmin monitor isn't restarting scripts that are down, then you should check to make sure that your crond is running.

Jeff

Crond is running ! but ,DA monitor don't restart downed service (S) ,
 
Is the service really down, or just not listening?

What error do you get when you try to restart it manuallly?

If DirectAdmin can't restart apache, then it's probable that sim won't be able to do it either.

I don't know of any way to run a cronjob more often than once a minute. To run sim once a minute simply change */5 to *.

Jeff
 
I don't know of any way to run a cronjob more often than once a minute. To run sim once a minute simply change */5 to *.

You can run it as many times as you want :) E.g. every minute you can run: command & sleep 30; command & sleep 30; (so it will run that command every 30 seconds).
 
Back
Top