admin cron

pilpelet

Verified User
Joined
Oct 12, 2003
Messages
108
Hi to all ,

Iv noticed that the admin panel doesnt includes a root cron , only users .

What is the best way or command i should run to achive apache
restart every 12 hours every day of the year .

It will simply take me too long to learn it and figure someone here
probebly can help easly .

Thanks ,
 
Hello,

add the following to /etc/crontab :
Code:
0 0,12 * * * root /etc/rc.d/init.d/httpd restart

John
 
Thanks ,

I added the line :
0 0,12 * * * root /etc/init.d/rc.d/httpd restart
I noticed a number befor the other crons does it matters wich number i add to the new cron(line) ?
also is it possible to write :
0 0,12 * * * root service httpd restart
insted and how can i check if the cron works .

Thanks again ,
 
Hello,

The first number on the line would be the minute that the cron will run as... in your case, it will run on the hour, so we use 0.

Yes, using "/sbin/service httpd restart" will work. I recommend using the full path, just in case.

John
 
Hi ,

The numbers befor the cron are not the 0 :
the first line after the configs line is :

# run-parts
01 * * * * root run-parts /etc/cron.daily

P-s : im using nano .
 
Hello,

It will look something like this:
Code:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly

0 0,12 * * * root /etc/rc.d/init.d/httpd restart
(Note, your cron.daily crontab look wrong because "01 * * * *" would run once per hour, not once per day, just copy what I have above)

John
 
Hi John ,

I figured it allready , please not that

0 0,12 * * * root /etc/init.d/rc.d/httpd restart

for some resone returend an error , so i entered service restart
insted and its ok now .

Thanks for the great help and the best dedicated product support i run into .

Any recommends for an easy to install mail(exim) antivirus ?
I realy dont need the best simply want to give clients an exta
level of protections against common viruses .

Thanks again .
 
I believe clam can be setup to work with exim aswell as mailscanner.

Chris
 
Hi ,

Thnaks but how the hell do i install it , doesnt say anything in the faqs , what can i say realy imberesing im basicly a NT admin .
i have the file "clamav-0.65.tar.gz"

Also does it support scan for vm-pop3d or exim , it has this in the vendor faqs :

Add the following lines to your pop3vscan configuration file:

virusregexp = .*: (.*) FOUND
scanner = /usr/bin/clamdscan --disable-summary -i
scannertype = basic

So basicly where do i add this asuming i passed the installation successfully .

Thanks ,
 
I tried to figure from other posts but got a bit confused what do i need . Antivirus as stand alone prog or mailscan and then the antivirus on top of that and integrate it with the mailscam prog .

So ill just go a head with mailscan and see abaot the antuvirus later .

Thanks again ,
 
Back
Top