<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Centos 5.6 vs AFD`]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=13858&amp;type=atom" />
	<updated>2011-05-24T11:13:46Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=13858</id>
		<entry>
			<title type="html"><![CDATA[Re: Centos 5.6 vs AFD`]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=182044#p182044" />
			<content type="html"><![CDATA[<p>Как не странно но ничего не помогает... перепробовал все возможные пути.. самое интересное так при перенаправлении вывода результата в файл там пусто.. тогда возникает вопрос почему при ручном запуске все запускается и работает отлично , при запуски при старте или по расписанию не работает...&nbsp; :o</p>]]></content>
			<author>
				<name><![CDATA[lordok]]></name>
				<uri>https://linuxforum.ru/profile.php?id=13254</uri>
			</author>
			<updated>2011-05-24T11:13:46Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=182044#p182044</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Centos 5.6 vs AFD`]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=182035#p182035" />
			<content type="html"><![CDATA[<p>а теперь как тест<br />запустите так<br />/usr/local/bin/startafd<br />и вот так<br />sh /usr/local/bin/startafd</p><p>как вариант.</p>]]></content>
			<author>
				<name><![CDATA[Kettler]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11719</uri>
			</author>
			<updated>2011-05-24T10:50:44Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=182035#p182035</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Centos 5.6 vs AFD`]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=182034#p182034" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Kettler пишет:</cite><blockquote><div class="quotebox"><cite>lordok пишет:</cite><blockquote><div class="quotebox"><cite>Kettler пишет:</cite><blockquote><p>chmod +x /usr/local/bin/init_afd<br />?</p></blockquote></div><p>init_afd является приложением запуска, по умолчанию оно доступно для выполнения всеми пользователями системы</p></blockquote></div><p>Права на выполнение назначьте причём тут чем он является.</p><p>Опс понял вы кроне запускаете это &quot;/usr/local/bin/startafd&quot; тогда<br />chmod +x /usr/local/bin/startafd</p></blockquote></div><br /><p>Если вам это поможет вот листинг прав доступа к приложению init_afd<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"><br />[root@vm-linux-test ~]# ls -la /usr/local/bin/ |grep init_afd<br />-rwxr-xr-x&nbsp; 2 root root 164765 May 24 11:13 init_afd<br /></div></p>]]></content>
			<author>
				<name><![CDATA[lordok]]></name>
				<uri>https://linuxforum.ru/profile.php?id=13254</uri>
			</author>
			<updated>2011-05-24T10:48:43Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=182034#p182034</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Centos 5.6 vs AFD`]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=182033#p182033" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>lordok пишет:</cite><blockquote><div class="quotebox"><cite>Kettler пишет:</cite><blockquote><p>chmod +x /usr/local/bin/init_afd<br />?</p></blockquote></div><p>init_afd является приложением запуска, по умолчанию оно доступно для выполнения всеми пользователями системы</p></blockquote></div><p>Права на выполнение назначьте причём тут чем он является.</p><p>Опс понял вы кроне запускаете это &quot;/usr/local/bin/startafd&quot; тогда<br />chmod +x /usr/local/bin/startafd</p>]]></content>
			<author>
				<name><![CDATA[Kettler]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11719</uri>
			</author>
			<updated>2011-05-24T10:45:08Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=182033#p182033</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Centos 5.6 vs AFD`]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=182032#p182032" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Vascom пишет:</cite><blockquote><p>Может просто добавить запуск этого скрипта в /etc/rc.local или один из других rc?</p></blockquote></div><p>Я пробовал но не помогло.</p><br /><div class="quotebox"><cite>Kettler пишет:</cite><blockquote><p>chmod +x /usr/local/bin/init_afd<br />?</p></blockquote></div><p>init_afd является приложением запуска, по умолчанию оно доступно для выполнения всеми пользователями системы</p>]]></content>
			<author>
				<name><![CDATA[lordok]]></name>
				<uri>https://linuxforum.ru/profile.php?id=13254</uri>
			</author>
			<updated>2011-05-24T10:38:56Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=182032#p182032</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Centos 5.6 vs AFD`]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=182022#p182022" />
			<content type="html"><![CDATA[<p>chmod +x /usr/local/bin/init_afd<br />?</p>]]></content>
			<author>
				<name><![CDATA[Kettler]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11719</uri>
			</author>
			<updated>2011-05-24T09:52:53Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=182022#p182022</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Centos 5.6 vs AFD`]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=182019#p182019" />
			<content type="html"><![CDATA[<p>Может просто добавить запуск этого скрипта в /etc/rc.local или один из других rc?</p>]]></content>
			<author>
				<name><![CDATA[Vascom]]></name>
				<uri>https://linuxforum.ru/profile.php?id=5339</uri>
			</author>
			<updated>2011-05-24T09:44:22Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=182019#p182019</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Centos 5.6 vs AFD`]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=182011#p182011" />
			<content type="html"><![CDATA[<p>Она определена</p>]]></content>
			<author>
				<name><![CDATA[lordok]]></name>
				<uri>https://linuxforum.ru/profile.php?id=13254</uri>
			</author>
			<updated>2011-05-24T09:01:57Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=182011#p182011</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Centos 5.6 vs AFD`]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=182010#p182010" />
			<content type="html"><![CDATA[<p>Может $WORK_DIR стоит все таки в скрипте определить?</p>]]></content>
			<author>
				<name><![CDATA[XliN]]></name>
				<uri>https://linuxforum.ru/profile.php?id=6412</uri>
			</author>
			<updated>2011-05-24T08:59:29Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=182010#p182010</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Centos 5.6 vs AFD`]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=182008#p182008" />
			<content type="html"><![CDATA[<p>я указывал с критпе полный путь до init_afd вот что получается если запускать в ручную <br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"><br />[root@vm-linux-test bin]# ./startafd<br />[root@vm-linux-test bin]# ps -ef |grep afd<br />root&nbsp; &nbsp; &nbsp;12166&nbsp; &nbsp; &nbsp;1&nbsp; 0 12:40 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 /usr/local/bin/init_afd -w /usr/local/bin/AFD<br />root&nbsp; &nbsp; &nbsp;12180 12166&nbsp; 0 12:40 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 afd_stat -w /usr/local/bin/AFD<br />root&nbsp; &nbsp; &nbsp;12184&nbsp; 3701&nbsp; 0 12:40 pts/1&nbsp; &nbsp; 00:00:00 grep afd<br /></div></p><p>а вот что получается когда запуск идет через cron <br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"><br />[root@vm-linux-test bin]# ps -ef |grep afd<br />root&nbsp; &nbsp; &nbsp;12208&nbsp; &nbsp; &nbsp;1&nbsp; 0 12:43 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 /usr/local/bin/init_afd -w /usr/local/bin/AFD<br />root&nbsp; &nbsp; &nbsp;12276 12208&nbsp; 0 12:43 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 [init_afd] &lt;defunct&gt;<br />root&nbsp; &nbsp; &nbsp;12277 12208&nbsp; 0 12:43 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 [init_afd] &lt;defunct&gt;<br />root&nbsp; &nbsp; &nbsp;12278 12208&nbsp; 0 12:43 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 [init_afd] &lt;defunct&gt;<br />root&nbsp; &nbsp; &nbsp;12279 12208&nbsp; 0 12:43 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 [init_afd] &lt;defunct&gt;<br />root&nbsp; &nbsp; &nbsp;12280 12208&nbsp; 0 12:43 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 [init_afd] &lt;defunct&gt;<br />root&nbsp; &nbsp; &nbsp;12281 12208&nbsp; 0 12:43 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 [init_afd] &lt;defunct&gt;<br />root&nbsp; &nbsp; &nbsp;12282 12208&nbsp; 0 12:43 ?&nbsp; &nbsp; &nbsp; &nbsp; 00:00:00 [init_afd] &lt;defunct&gt;<br />root&nbsp; &nbsp; &nbsp;12284&nbsp; 3701&nbsp; 0 12:43 pts/1&nbsp; &nbsp; 00:00:00 grep afd</p><br /><p></div></p>]]></content>
			<author>
				<name><![CDATA[lordok]]></name>
				<uri>https://linuxforum.ru/profile.php?id=13254</uri>
			</author>
			<updated>2011-05-24T08:49:06Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=182008#p182008</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Centos 5.6 vs AFD`]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=182007#p182007" />
			<content type="html"><![CDATA[<p>В скрипте прописать полный путь к init_afd</p>]]></content>
			<author>
				<name><![CDATA[XliN]]></name>
				<uri>https://linuxforum.ru/profile.php?id=6412</uri>
			</author>
			<updated>2011-05-24T08:38:34Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=182007#p182007</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Centos 5.6 vs AFD`]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=182005#p182005" />
			<content type="html"><![CDATA[<p>Добрового времени суток. У меня возникла делема. есть приложение AFD DWD оно установлено, настроено и работает. запускается приложение командой <div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">init_afd -w {$WOKR_DIR}</div>, после этого запускается 2 процесса init_afd и afd_stat.&nbsp; все хорошо и замечательно но только оно не запускается при старте системы. я пробовал помещать запуск приложения в /etc/inittab, пробовал через chkconfig, к сожалению это не помогло. возникла идея попробовать через cron&nbsp; написал простенький срипт<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"><br />#!/bin/bash<br />init_afd -w $WORK_DIR <br /></div><br />запускаю вручную AFD стартует.<br />как только пытаюсь его запустить через cron&nbsp; получаю сообщение <div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">/usr/local/bin/startafd: line 1: init_afd: command not found</div>. <br />Кто подскажет как с этим бороться??</p>]]></content>
			<author>
				<name><![CDATA[lordok]]></name>
				<uri>https://linuxforum.ru/profile.php?id=13254</uri>
			</author>
			<updated>2011-05-24T08:35:38Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=182005#p182005</id>
		</entry>
</feed>
