<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Codeline &#187; freebsd</title>
	<atom:link href="http://codeline.richmd.ru/tag/freebsd/feed/" rel="self" type="application/rss+xml" />
	<link>http://codeline.richmd.ru</link>
	<description>Веб созидание</description>
	<lastBuildDate>Thu, 22 Apr 2010 09:01:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Запуск демона Trac (Trac/Nginx/FastCGI/FreeBSD)</title>
		<link></link>
		<comments>http://codeline.richmd.ru/2009/04/%d0%b7%d0%b0%d0%bf%d1%83%d1%81%d0%ba-%d0%b4%d0%b5%d0%bc%d0%be%d0%bd%d0%b0-trac-tracnginxfastcgifreebsd/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 07:23:27 +0000</pubDate>
		<dc:creator>Павел Антонов</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[fastcgi]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[trac]]></category>

		<guid isPermaLink="false">http://codeline.richmd.ru/?p=61</guid>
		<description><![CDATA[При запуска для одного из проектов Trac, столкнулся с проблемой как непосредственно запустить демон FastCGI, как это принято во FreeBSD. Так как ничего разумного я не нашел в сети, привожу свой вариант скрипта запуска (rc.d):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
#
&#160;
# PROVIDE: trac
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable trac:
#
#  trac_enable=&#34;YES&#34;
#  [...]]]></description>
			<content:encoded><![CDATA[<p>При запуска для одного из проектов Trac, столкнулся с проблемой как непосредственно запустить демон FastCGI, как это принято во FreeBSD. Так как ничего разумного я не нашел в сети, привожу свой вариант скрипта запуска (rc.d):</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
</pre></td><td class="code"><pre class="shell" style="font-family:monospace;">#!/bin/sh
#
&nbsp;
# PROVIDE: trac
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable trac:
#
#  trac_enable=&quot;YES&quot;
#  trac_data=&quot;/usr/local/www/trac&quot;
&nbsp;
. &quot;/etc/rc.subr&quot;
&nbsp;
&nbsp;
# Set some defaults
trac_enable=${trac_enable:-&quot;NO&quot;}
#trac_flags=${trac_flags:-&quot;&quot;}
trac_data=${trac_data:-&quot;/path/trac&quot;}
trac_user=${trac_user:-&quot;trac_user&quot;}
&nbsp;
name=trac
rcvar=`set_rcvar`
load_rc_config $name
pidfile=&quot;${trac_data}/run/${name}.pid&quot;
fastcgi=&quot;${trac_data}/trac.fcgi&quot;
command=/usr/sbin/daemon
command_args=&quot;-p ${pidfile} ${fastcgi}&quot;
&nbsp;
start_cmd=&quot;echo \&quot;Starting ${name}:${command} ${command_args}\&quot;; su ${trac_user} -c \&quot;${command} ${command_args}\&quot;&quot;
&nbsp;
run_rc_command &quot;$1&quot;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://codeline.richmd.ru/2009/04/%d0%b7%d0%b0%d0%bf%d1%83%d1%81%d0%ba-%d0%b4%d0%b5%d0%bc%d0%be%d0%bd%d0%b0-trac-tracnginxfastcgifreebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
