Nem crontab -e -vel szerkesztem, hanem mc-vel az /etc/crontab filet. Aztán: crontab /etc/crontab Majd: /etc/init.d/cron force-reload
Igyen root nélkül megy, rájöttem. Köszi a segítséget mindenkinek T. Szládovics Péter írta: > Gergely Tamás írta: > >> 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 >> > ^^^^ > Ez a crontab a /etc/crontab fájl, vagy a /var/spool/cron/crontabs/ > mappában lévő fájl (azt szerkeszted 'crontab -e'-vel)? > > >> De így nem fut le a script: >> >> /bin/sh: root: command not found >> > > Nem kell oda a root (aláhúztam). Mint ahogy a */1-nek sincs sok értelme > > >> 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 >> > > /bin/rm /tmp/apache_reload &>/dev/null && /etc/init.d/apache reload > > ... és még script sem kell. > _________________________________________________ > 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
