Most már eltünt a log-ból a hibaüzenet.
A szkriptjeimet beraktam a /etc/cron.scripts helyre.


a contabban az apache bejegyzés ami percenként reloadolja a szevert

*/1 *   * * *   root    /etc/cron.scripts/apache


De így nem fut le a script:

/bin/sh: root: command not found



Az apache script így néz ki:

#!/bin/sh

file=/tmp/apache_reload

if [ -e $file ]
then
  /etc/init.d/apache reload
  /bin/rm $file
fi






Gergely Tamás írta:
> ajjajj, akkor én ezt nagyon félreértettem. Én a saját szkriptjeimet 
> raktam ide amelyekre a crontabban hivatkozom (/etc/crontab). Így érthető 
> hogy nem tudja értelmezni a benne lévő tartalmat. Köszi, átvariálom.
>
> Hofferek Attila írta:
>   
>> Gergely Tamás írta:
>>   
>>     
>>> De nekem ezeken a helyeken nincs crontab file...
>>>     
>>>       
>> Dehogynincs, ott írja: /etc/cron.d/apache
>> Az etc/cron.d alól mindent felnyal a cron, nem csak a "crontab" 
>> nevűeket. Minden app oda teszi a saját cron feladatait, a saját nevén. 
>> Lám, az apache is. Nézd meg mi lehet rossz benne!
>> _________________________________________________
>> linux lista      -      [email protected]
>> http://mlf2.linux.rulez.org/mailman/listinfo/linux
>> ------------------------------------------------------------------------
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - www.avg.com 
>> Version: 8.5.409 / Virus Database: 270.13.73/2338 - Release Date: 08/31/09 
>> 17:52:00
>>
>>   
>>     
>
> _________________________________________________
> linux lista      -      [email protected]
> http://mlf2.linux.rulez.org/mailman/listinfo/linux
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com 
> Version: 8.5.409 / Virus Database: 270.13.73/2338 - Release Date: 08/31/09 
> 17:52:00
>
>   

_________________________________________________
linux lista      -      [email protected]
http://mlf2.linux.rulez.org/mailman/listinfo/linux

válasz