<!DOCTYPE html>
<html>
<head>
</head>
<body>
<dl style="line-height: 1.5; margin-left: 2em">
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Author</dt>
<dd style="margin-left: 8.5em">Kouhei Sutou <kou****@clear*****></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
<dd style="margin-left: 8.5em">2014-04-25 15:47:57 +0900 (Fri, 25 Apr 2014)</dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">New Revision</dt>
<dd style="margin-left: 8.5em"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c">0b869297b8c4225e0fda6a91d327531b00cf258c</a></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Message</dt>
<dd style="margin-left: 8.5em"><pre style="border: 1px solid #aaa; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">Add --daemon option</pre></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Modified files</dt>
<dd style="margin-left: 8.5em">
<ul>
<li><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#diff-0">bin/droonga-http-server</a></li>
<li><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#diff-1">package.json</a></li>
</ul>
</dd>
</dl>
<div class="diff-section" style="clear: both">
<table style="border-collapse: collapse; border: 1px solid #aaa">
<thead>
<tr class="diff-header" style="border: 1px solid #aaa">
<td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: bin/droonga-http-server (+6 -0)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
</td>
</tr>
</thead>
<tbody>
<tr>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0L1">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0L2">2</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0L3">3</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0L4">4</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0L5">5</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0L6">6</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0L7">7</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0L52">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0L53">53</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0L54">54</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0L55">55</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0L56">56</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0L57">57</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0L58">58</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0L59">59</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0L60">60</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0R1">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0R2">2</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0R3">3</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0R4">4</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0R5">5</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0R6">6</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0R7">7</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0R8">8</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0R53">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0R54">54</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0R55">55</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0R56">56</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0R57">57</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0R58">58</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0R59">59</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0R60">60</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0R61">61</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0R62">62</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0R63">63</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0R64">64</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0R65">65</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L0R66">66</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -2,6 +2,7 @@</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> // -*- js -*-</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> var fs = require('fs'),</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ daemon = require('daemon'),</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> express = require('express'),</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> bodyParser = require('body-parser'),</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> cookieParser = require('cookie-parser'),</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -53,8 +54,13 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">options</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> droonga.API_DROONGA</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> ])</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> .option('--pid-file <pid-file>', 'Output PID to <pid-file>.')</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ .option('--daemon', 'Run as a daemon.')</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> .parse(process.argv);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+if (options.daemon) {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ daemon();</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+}</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if (options.pidFile) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> var fd = fs.openSync(options.pidFile, 'w', 0644);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> fs.writeSync(fd, process.pid.toString());</span>
</pre>
</td>
</tr>
</tbody>
</table>
<table style="border-collapse: collapse; border: 1px solid #aaa">
<thead>
<tr class="diff-header" style="border: 1px solid #aaa">
<td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: package.json (+1 -0)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
</td>
</tr>
</thead>
<tbody>
<tr>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L1L20">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L1L21">21</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L1L22">22</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L1L23">23</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L1L24">24</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L1L25">25</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L1L26">26</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L1R20">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L1R21">21</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L1R22">22</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L1R23">23</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L1R24">24</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L1R25">25</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L1R26">26</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/droonga/droonga-http-server/commit/0b869297b8c4225e0fda6a91d327531b00cf258c#L1R27">27</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -21,6 +21,7 @@</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> "dependencies": {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> "cookie-parser": "*",</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> "commander": "*",</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ "daemon": "*",</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> "express": ">=4.0",</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> "express-droonga": "*",</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> "express-session": "*",</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>