* [sisyphus] webalizer - /etc/cron.d/webalizer
@ 2004-12-03 6:37 Ruslan Popov
2004-12-03 8:00 ` Dmitry Alexeyev
2004-12-03 8:53 ` [sisyphus] " Michael Shigorin
0 siblings, 2 replies; 13+ messages in thread
From: Ruslan Popov @ 2004-12-03 6:37 UTC (permalink / raw)
To: ALT Linux Sisyphus discussion list
Доброе время суток!
Недавно поставил webalizer и заметил следующую странность.
При установке пакета создаётся файл /etc/cron.d/webalizer содержащий:
#!/bin/sh
0 0 * * * webalizer /usr/bin/webalizer -c /etc/webalizer/apache.conf
#25 03 * * * webalizer /usr/bin/webalizer -c /etc/webalizer/vsftpd.conf
Я мог что-то не понять, но зачем указан webalizer перед /usr/bin/webalizer?
Анализ логов апача не происходит.
Для решения проблемы пришлось вставить ручками запуск скрипта в crontab
пользователя webalizer.
Руслан Попов
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [sisyphus] webalizer - /etc/cron.d/webalizer
2004-12-03 6:37 [sisyphus] webalizer - /etc/cron.d/webalizer Ruslan Popov
@ 2004-12-03 8:00 ` Dmitry Alexeyev
2004-12-03 8:53 ` [sisyphus] " Michael Shigorin
1 sibling, 0 replies; 13+ messages in thread
From: Dmitry Alexeyev @ 2004-12-03 8:00 UTC (permalink / raw)
To: ALT Linux Sisyphus discussion list
On Friday 03 December 2004 09:37, Ruslan Popov wrote:
> Доброе время суток!
>
> Недавно поставил webalizer и заметил следующую странность.
> При установке пакета создаётся файл /etc/cron.d/webalizer содержащий:
> #!/bin/sh
> 0 0 * * * webalizer /usr/bin/webalizer -c /etc/webalizer/apache.conf
> #25 03 * * * webalizer /usr/bin/webalizer -c
> /etc/webalizer/vsftpd.conf
>
> Я мог что-то не понять, но зачем указан webalizer перед
> /usr/bin/webalizer?
Очевидно, это имя пользователя, от которого запускается команда.
> Анализ логов апача не происходит.
Попробуйте вернуть назад и сделать
# echo "" >> /etc/cron.d/webalizer
после чего читайте /var/log/cron
WBR
Dmitry
> Для решения проблемы пришлось вставить ручками запуск скрипта в
> crontab пользователя webalizer.
>
> Руслан Попов
^ permalink raw reply [flat|nested] 13+ messages in thread
* [sisyphus] Re: webalizer - /etc/cron.d/webalizer
2004-12-03 6:37 [sisyphus] webalizer - /etc/cron.d/webalizer Ruslan Popov
2004-12-03 8:00 ` Dmitry Alexeyev
@ 2004-12-03 8:53 ` Michael Shigorin
2004-12-03 10:04 ` Ruslan Popov
1 sibling, 1 reply; 13+ messages in thread
From: Michael Shigorin @ 2004-12-03 8:53 UTC (permalink / raw)
To: ALT Linux Sisyphus discussion list
On Fri, Dec 03, 2004 at 09:37:40AM +0300, Ruslan Popov wrote:
> 0 0 * * * webalizer /usr/bin/webalizer -c /etc/webalizer/apache.conf
> Я мог что-то не понять, но зачем указан webalizer перед
> /usr/bin/webalizer?
См. crontab(5)
> Анализ логов апача не происходит.
ls -ld /var/log/httpd
id webalizer
?
> Для решения проблемы пришлось вставить ручками запуск скрипта в
> crontab пользователя webalizer.
Вообще-то оно работает из коробки (когда злобный майнтейнер
apache не устраивает мне как майнтейнеру webalizer засады с
правами на /var/log/httpd). :)
Ломать, не поняв -- дело неблагодарное и привычка плохая.
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
^ permalink raw reply [flat|nested] 13+ messages in thread
* [sisyphus] Re: webalizer - /etc/cron.d/webalizer
2004-12-03 8:53 ` [sisyphus] " Michael Shigorin
@ 2004-12-03 10:04 ` Ruslan Popov
2004-12-04 5:01 ` Ivan Adzhubey
0 siblings, 1 reply; 13+ messages in thread
From: Ruslan Popov @ 2004-12-03 10:04 UTC (permalink / raw)
To: ALT Linux Sisyphus discussion list
Michael Shigorin wrote:
> On Fri, Dec 03, 2004 at 09:37:40AM +0300, Ruslan Popov wrote:
>
>>0 0 * * * webalizer /usr/bin/webalizer -c /etc/webalizer/apache.conf
>>Я мог что-то не понять, но зачем указан webalizer перед
>>/usr/bin/webalizer?
>
>
> См. crontab(5)
Угу
>>Анализ логов апача не происходит.
>
>
> ls -ld /var/log/httpd
> id webalizer
>
> ?
>
>
>>Для решения проблемы пришлось вставить ручками запуск скрипта в
>>crontab пользователя webalizer.
>
>
> Вообще-то оно работает из коробки (когда злобный майнтейнер
> apache не устраивает мне как майнтейнеру webalizer засады с
> правами на /var/log/httpd). :)
>
> Ломать, не поняв -- дело неблагодарное и привычка плохая.
>
Не работало "из коробки" несколько дней, потом "поправил" :)
Дома разберусь, отпишу...
--
P.S. Please, send replies about MailBoss or Dozor
to Dozor-Support <dozor-support@jet.msk.su>
Thank you.
_/ Ruslan Popov
_/ _/_/ _/
_/ _/ _/ _/ Engineer
_/ _/_/_/_/ _/_/ Mobile: +7 (916) 926-12-05
_/ _/ _/ Office: +7 (095) 411-76-01
_/_/ _/_/_/ _/ E-mail: rpopov@jet.msk.su
Infosystems _/_/ Moscow, Russia
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [sisyphus] Re: webalizer - /etc/cron.d/webalizer
2004-12-03 10:04 ` Ruslan Popov
@ 2004-12-04 5:01 ` Ivan Adzhubey
2004-12-04 12:01 ` Ruslan Popov
2004-12-04 14:21 ` Michael Shigorin
0 siblings, 2 replies; 13+ messages in thread
From: Ivan Adzhubey @ 2004-12-04 5:01 UTC (permalink / raw)
To: rpopov, ALT Linux Sisyphus discussion list
On Friday 03 December 2004 05:04 am, Ruslan Popov wrote:
> Michael Shigorin wrote:
> > On Fri, Dec 03, 2004 at 09:37:40AM +0300, Ruslan Popov wrote:
> >>0 0 * * * webalizer /usr/bin/webalizer -c /etc/webalizer/apache.conf
> >>Я мог что-то не понять, но зачем указан webalizer перед
> >>/usr/bin/webalizer?
> >
> > См. crontab(5)
>
> Угу
>
> >>Анализ логов апача не происходит.
> >
> > ls -ld /var/log/httpd
> > id webalizer
> >
> > ?
> >
> >>Для решения проблемы пришлось вставить ручками запуск скрипта в
> >>crontab пользователя webalizer.
> >
> > Вообще-то оно работает из коробки (когда злобный майнтейнер
> > apache не устраивает мне как майнтейнеру webalizer засады с
> > правами на /var/log/httpd). :)
> >
> > Ломать, не поняв -- дело неблагодарное и привычка плохая.
>
> Не работало "из коробки" несколько дней, потом "поправил" :)
> Дома разберусь, отпишу...
Вы видимо (так же как и я) инициализировали его базу запустив webalizer
ручками от себя или от рута первый раз и он насоздавал файлов которые
пользователю webalizer недоступны на запись и из-под крона обновить он их не
может. А вот что он это делает совершенно молча - это не есть правильно. Как
бы его научить ругаться в syslog? Hint: кроме /var/lib/webalizer/ не забудьте
проверить /var/www/html/webalizer/.
--
Иван
^ permalink raw reply [flat|nested] 13+ messages in thread
* [sisyphus] Re: webalizer - /etc/cron.d/webalizer
2004-12-04 5:01 ` Ivan Adzhubey
@ 2004-12-04 12:01 ` Ruslan Popov
2004-12-04 14:21 ` Michael Shigorin
1 sibling, 0 replies; 13+ messages in thread
From: Ruslan Popov @ 2004-12-04 12:01 UTC (permalink / raw)
To: ALT Linux Sisyphus discussion list
В сообщении от Суббота 04 Декабрь 2004 08:01 Ivan Adzhubey написал(a):
> On Friday 03 December 2004 05:04 am, Ruslan Popov wrote:
> > Michael Shigorin wrote:
> > > On Fri, Dec 03, 2004 at 09:37:40AM +0300, Ruslan Popov wrote:
> > >>0 0 * * * webalizer /usr/bin/webalizer -c /etc/webalizer/apache.conf
> > >>Я мог что-то не понять, но зачем указан webalizer перед
> > >>/usr/bin/webalizer?
> > >
> > > См. crontab(5)
> >
> > Угу
> >
> > >>Анализ логов апача не происходит.
> > >
> > > ls -ld /var/log/httpd
> > > id webalizer
> > >
> > > ?
> > >
> > >>Для решения проблемы пришлось вставить ручками запуск скрипта в
> > >>crontab пользователя webalizer.
> > >
> > > Вообще-то оно работает из коробки (когда злобный майнтейнер
> > > apache не устраивает мне как майнтейнеру webalizer засады с
> > > правами на /var/log/httpd). :)
> > >
> > > Ломать, не поняв -- дело неблагодарное и привычка плохая.
> >
> > Не работало "из коробки" несколько дней, потом "поправил" :)
> > Дома разберусь, отпишу...
>
> Вы видимо (так же как и я) инициализировали его базу запустив webalizer
> ручками от себя или от рута первый раз и он насоздавал файлов которые
> пользователю webalizer недоступны на запись и из-под крона обновить он их
> не может. А вот что он это делает совершенно молча - это не есть правильно.
> Как бы его научить ругаться в syslog? Hint: кроме /var/lib/webalizer/ не
> забудьте проверить /var/www/html/webalizer/.
Действительно, всё так и было.
Вылечилось с помощью:
chown webalizer:webalizer /var/lib/webalizer
chown webalizer:apache /var/www/html/webalizer
^ permalink raw reply [flat|nested] 13+ messages in thread
* [sisyphus] Re: webalizer - /etc/cron.d/webalizer
2004-12-04 5:01 ` Ivan Adzhubey
2004-12-04 12:01 ` Ruslan Popov
@ 2004-12-04 14:21 ` Michael Shigorin
2004-12-04 14:47 ` Volkov Serge
1 sibling, 1 reply; 13+ messages in thread
From: Michael Shigorin @ 2004-12-04 14:21 UTC (permalink / raw)
To: ALT Linux Sisyphus discussion list
On Sat, Dec 04, 2004 at 12:01:18AM -0500, Ivan Adzhubey wrote:
> > Не работало "из коробки" несколько дней, потом "поправил" :)
> > Дома разберусь, отпишу...
> Вы видимо (так же как и я) инициализировали его базу запустив
> webalizer ручками от себя или от рута первый раз и он
> насоздавал файлов которые пользователю webalizer недоступны на
> запись и из-под крона обновить он их не может. А вот что он это
> делает совершенно молча - это не есть правильно. Как бы его
> научить ругаться в syslog? Hint: кроме /var/lib/webalizer/ не
> забудьте проверить /var/www/html/webalizer/.
О, а это ведь надо написать в README.ALT -- вместе со строчкой
запуска из-под webalizer. Пойду-ка повешу себе багу. :)
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [sisyphus] Re: webalizer - /etc/cron.d/webalizer
2004-12-04 14:21 ` Michael Shigorin
@ 2004-12-04 14:47 ` Volkov Serge
2004-12-04 15:18 ` Michael Shigorin
0 siblings, 1 reply; 13+ messages in thread
From: Volkov Serge @ 2004-12-04 14:47 UTC (permalink / raw)
To: ALT Linux Sisyphus discussion list
Hello Michael,
Saturday, December 4, 2004, 5:21:31 PM, you wrote:
MS> On Sat, Dec 04, 2004 at 12:01:18AM -0500, Ivan Adzhubey wrote:
>> > Не работало "из коробки" несколько дней, потом "поправил" :)
>> > Дома разберусь, отпишу...
>> Вы видимо (так же как и я) инициализировали его базу запустив
>> webalizer ручками от себя или от рута первый раз и он
>> насоздавал файлов которые пользователю webalizer недоступны на
>> запись и из-под крона обновить он их не может. А вот что он это
>> делает совершенно молча - это не есть правильно. Как бы его
>> научить ругаться в syslog? Hint: кроме /var/lib/webalizer/ не
>> забудьте проверить /var/www/html/webalizer/.
MS> О, а это ведь надо написать в README.ALT -- вместе со строчкой
MS> запуска из-под webalizer. Пойду-ка повешу себе багу. :)
Вешай - вешай, а проще сделать
Вот пойду и пропишу :)
--
Best regards,
Volkov mailto:vserge@altlinux.ru
^ permalink raw reply [flat|nested] 13+ messages in thread
* [sisyphus] Re: webalizer - /etc/cron.d/webalizer
2004-12-04 14:47 ` Volkov Serge
@ 2004-12-04 15:18 ` Michael Shigorin
2004-12-04 17:41 ` Volkov Serge
0 siblings, 1 reply; 13+ messages in thread
From: Michael Shigorin @ 2004-12-04 15:18 UTC (permalink / raw)
To: ALT Linux Sisyphus discussion list
[-- Attachment #1: Type: text/plain, Size: 447 bytes --]
On Sat, Dec 04, 2004 at 05:47:47PM +0300, Volkov Serge wrote:
> Вешай - вешай, а проще сделать Вот пойду и пропишу :)
Ээээ.... ой, а теперь его ты собираешь? :)
Тогда ещё строчку вида
su - -c "/usr/bin/webalizer -c /etc/webalizer/apache.conf" -s /bin/sh webalizer
проверь и добавь.
2 abulava: надо будет с mrtg то же сделать.
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [sisyphus] Re: webalizer - /etc/cron.d/webalizer
2004-12-04 15:18 ` Michael Shigorin
@ 2004-12-04 17:41 ` Volkov Serge
2004-12-04 19:01 ` Michael Shigorin
0 siblings, 1 reply; 13+ messages in thread
From: Volkov Serge @ 2004-12-04 17:41 UTC (permalink / raw)
To: ALT Linux Sisyphus discussion list
Hello Michael,
Saturday, December 4, 2004, 6:18:47 PM, you wrote:
MS> On Sat, Dec 04, 2004 at 05:47:47PM +0300, Volkov Serge wrote:
>> Вешай - вешай, а проще сделать Вот пойду и пропишу :)
MS> Ээээ.... ой, а теперь его ты собираешь? :)
MS> Тогда ещё строчку вида
MS> su - -c "/usr/bin/webalizer -c /etc/webalizer/apache.conf" -s /bin/sh webalizer
эту строчку ты куда хочешь добавить ? post ?
MS> проверь и добавь.
MS> 2 abulava: надо будет с mrtg то же сделать.
--
Best regards,
Volkov mailto:vserge@altlinux.ru
^ permalink raw reply [flat|nested] 13+ messages in thread
* [sisyphus] Re: webalizer - /etc/cron.d/webalizer
2004-12-04 17:41 ` Volkov Serge
@ 2004-12-04 19:01 ` Michael Shigorin
2004-12-04 19:43 ` Volkov Serge
0 siblings, 1 reply; 13+ messages in thread
From: Michael Shigorin @ 2004-12-04 19:01 UTC (permalink / raw)
To: ALT Linux Sisyphus discussion list
On Sat, Dec 04, 2004 at 08:41:42PM +0300, Volkov Serge wrote:
> MS> Тогда ещё строчку вида
> MS> su - -c "/usr/bin/webalizer -c /etc/webalizer/apache.conf" -s /bin/sh webalizer
> эту строчку ты куда хочешь добавить ? post ?
README.ALT, как и то, что в багу процитировал :)
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [sisyphus] Re: webalizer - /etc/cron.d/webalizer
2004-12-04 19:01 ` Michael Shigorin
@ 2004-12-04 19:43 ` Volkov Serge
2004-12-04 20:03 ` Michael Shigorin
0 siblings, 1 reply; 13+ messages in thread
From: Volkov Serge @ 2004-12-04 19:43 UTC (permalink / raw)
To: ALT Linux Sisyphus discussion list
Hello Michael,
Saturday, December 4, 2004, 10:01:50 PM, you wrote:
MS> On Sat, Dec 04, 2004 at 08:41:42PM +0300, Volkov Serge wrote:
>> MS> Тогда ещё строчку вида
>> MS> su - -c "/usr/bin/webalizer -c /etc/webalizer/apache.conf" -s /bin/sh webalizer
>> эту строчку ты куда хочешь добавить ? post ?
MS> README.ALT, как и то, что в багу процитировал :)
OK
поправлю, Но юагу повесьте пожалуйста.
--
Best regards,
Volkov mailto:vserge@altlinux.ru
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2004-12-04 20:03 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-03 6:37 [sisyphus] webalizer - /etc/cron.d/webalizer Ruslan Popov
2004-12-03 8:00 ` Dmitry Alexeyev
2004-12-03 8:53 ` [sisyphus] " Michael Shigorin
2004-12-03 10:04 ` Ruslan Popov
2004-12-04 5:01 ` Ivan Adzhubey
2004-12-04 12:01 ` Ruslan Popov
2004-12-04 14:21 ` Michael Shigorin
2004-12-04 14:47 ` Volkov Serge
2004-12-04 15:18 ` Michael Shigorin
2004-12-04 17:41 ` Volkov Serge
2004-12-04 19:01 ` Michael Shigorin
2004-12-04 19:43 ` Volkov Serge
2004-12-04 20:03 ` Michael Shigorin
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git