aboutsummaryrefslogtreecommitdiff
path: root/databases/flare/files/patch-flared-ini_option.cc
diff options
context:
space:
mode:
Diffstat (limited to 'databases/flare/files/patch-flared-ini_option.cc')
-rw-r--r--databases/flare/files/patch-flared-ini_option.cc28
1 files changed, 28 insertions, 0 deletions
diff --git a/databases/flare/files/patch-flared-ini_option.cc b/databases/flare/files/patch-flared-ini_option.cc
new file mode 100644
index 000000000000..281785b9386f
--- /dev/null
+++ b/databases/flare/files/patch-flared-ini_option.cc
@@ -0,0 +1,28 @@
+--- src/flared/ini_option.cc.orig 2009-10-09 19:08:47.000000000 +0900
++++ src/flared/ini_option.cc 2010-05-30 00:32:09.744274848 +0900
+@@ -23,6 +23,7 @@
+ _argv(NULL),
+ _back_log(default_back_log),
+ _config_path(""),
++ _pid_path(""),
+ _daemonize(false),
+ _data_dir(""),
+ _index_server_name(""),
+@@ -106,6 +107,9 @@
+ if (opt_var_map.count("config")) {
+ this->_config_path = opt_var_map["config"].as<string>();
+ }
++ if (opt_var_map.count("pid")) {
++ this->_pid_path = opt_var_map["pid"].as<string>();
++ }
+
+ // parse config file
+ if (this->_config_path.empty() == false) {
+@@ -362,6 +366,7 @@
+ int ini_option::_setup_cli_option(program_options::options_description& option) {
+ option.add_options()
+ ("config,f", program_options::value<string>(), "path to config file")
++ ("pid,p", program_options::value<string>(), "path to pid file")
+ ("version,v", "display version")
+ ("help,h", "display this help");
+