Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Вопрос по cron'у [Решено]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
ntsite
Tux's lil' helper
Tux's lil' helper


Joined: 13 Dec 2008
Posts: 86
Location: Khabarovsk, Russia

PostPosted: Sat Dec 27, 2008 12:57 pm    Post subject: Вопрос по cron'у [Решено] Reply with quote

Вопросик такой.
Нужно, чтобы из папки /home рестартился пакет каждые 6 часов.
Code:
crontab -e

Ввожу то что мне надо
Quote:
* 6 * * * root /home/Server/eAthena/stable/athena-start restart

Крон пытает рестартнуть, но в результате в файле dead.letter я так понимаю такой лог
Code:
Athena Starting...                           
            (c) 2003 Athena Project           
              modified by a@a.com   
                                             
checking...                                   
login-server_sql does not exist, or can't run.
Stop. Check your compile.                     

Если делать ручками, то все получается... Не подскажите в чем проблема?


Last edited by ntsite on Sat Jan 31, 2009 2:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
fank
l33t
l33t


Joined: 16 Oct 2004
Posts: 794
Location: Minsk, Belarus

PostPosted: Mon Dec 29, 2008 9:58 am    Post subject: Reply with quote

может, в переменных окружения?
подумай, от имени какого юзера делается вызов задачи и какие параметры при этом нужны приложению
_________________
Слово „христианство“ основано на недоразумении; в сущности, был один христианин, и тот умер на кресте.
Back to top
View user's profile Send private message
calculator
Apprentice
Apprentice


Joined: 16 Oct 2006
Posts: 183
Location: Russia, Moscow

PostPosted: Mon Dec 29, 2008 10:58 am    Post subject: Reply with quote

Я так понимаю каждые 6 часов будет
0 */6 * * * root /home/Server/eAthena/stable/athena-start restart

А как сйчас - каждую минуту в 6 часов.
Back to top
View user's profile Send private message
ntsite
Tux's lil' helper
Tux's lil' helper


Joined: 13 Dec 2008
Posts: 86
Location: Khabarovsk, Russia

PostPosted: Mon Dec 29, 2008 2:00 pm    Post subject: Reply with quote

М, насчет синтаксиса гляну. Запускается от рута, пользую простым кроном, разве там нужны переменные? Вроде просто через crontab -e правишь и тебе счастье о_О
Back to top
View user's profile Send private message
vr13
n00b
n00b


Joined: 02 Sep 2008
Posts: 24
Location: ru

PostPosted: Sun Jan 04, 2009 8:25 am    Post subject: Reply with quote

ntsite wrote:
М, насчет синтаксиса гляну. Запускается от рута, пользую простым кроном, разве там нужны переменные? Вроде просто через crontab -e правишь и тебе счастье о_О

нужные переменные окружения следует установить явно. разница между сессией cron и терминальной сессией описана в crontab(5)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum