|
Добро пожаловать на Форум RadioCMS. |
Форум доступен только для чтения. |
Опции темы | Опции просмотра |
#1
|
|||
|
|||
![]()
Добрый день!
Понимаю, что тема уже не один раз поднималась, но всё же. Дано:
Вот только как я не правил CRON - playlist не обновляется. Запись в /etc/crontab имеет следующий вид: Код:
*/03 * * * * root wget -O -q http://***.ru/radio/event.php Код:
/USR/SBIN/CRON[2280]: (root) CMD (wget -O -q http://***.ru/radio/event.php) p.s. icecast конфиг Код:
<icecast> <limits> <clients>100</clients> <sources>2</sources> <threadpool>5</threadpool> <queue-size>524288</queue-size> <client-timeout>30</client-timeout> <header-timeout>15</header-timeout> <source-timeout>10</source-timeout> <burst-on-connect>1</burst-on-connect> <burst-size>65535</burst-size> </limits> <authentication> <source-password>***</source-password> <relay-password>***</relay-password> <admin-user>admin</admin-user> <admin-password>***</admin-password> </authentication> <hostname>localhost</hostname> <listen-socket> <port>8000</port> </listen-socket> <fileserve>1</fileserve> <mount> <mount-name>/live</mount-name> <charset>CP1251</charset> </mount> <paths> <logdir>/usr/local/share/icecast/logs</logdir> <webroot>/usr/local/share/icecast/web</webroot> <adminroot>/usr/local/share/icecast/admin</adminroot> <alias source="/" dest="/status.xsl"/> </paths> <logging> <accesslog>access.log</accesslog> <errorlog>error.log</errorlog> <loglevel>3</loglevel> <logsize>10000</logsize> </logging> <security> <chroot>0</chroot> <changeowner> <user>icecast</user> <group>icecast</group> </changeowner> </security> </icecast> Код:
<ezstream> <url>http://localhost:8000/live</url> <sourcepassword>***</sourcepassword> <format>MP3</format> <filename>/mnt/radio/playlist.txt</filename> <shuffle>0</shuffle> <playlist_program>0</playlist_program> <svrinfoname>radio</svrinfoname> <svrinfourl>http://***.ru/</svrinfourl> <svrinfogenre>Ofther</svrinfogenre> <svrinfodescription>Description</svrinfodescription> <svrinfobitrate>128</svrinfobitrate> <svrinfochannels>2</svrinfochannels> <svrinfosamplerate>44100</svrinfosamplerate> <svrinfopublic>1</svrinfopublic> <reencode> <enable>1</enable> <encdec> <format>MP3</format> <match>.mp3</match> <decode>lame -f --preset cbr 128 --bitwidth 16 "@T@" -</decode> </encdec> </reencode> </ezstream> Последний раз редактировалось Nixon; 23.12.2012 в 19:30. |
#2
|
|||
|
|||
![]()
Разобрался сам.
Было две ошибки: 1. Не там указал запуск cron. Надо было тут crontab -e. директива: Код:
*/03 * * * * wget http://***.ru/radio/event.php -O event.php Последний раз редактировалось Nixon; 25.12.2012 в 19:54. |
#3
|
|||
|
|||
![]()
запусти логирование сron так будет проще найти где что по умолчанию он выключен в /var/log
|