aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-10-08 08:54:52 +0000
committerRoger Dingledine <arma@torproject.org>2003-10-08 08:54:52 +0000
commit746d64e63121600fe694f11c15bd9dc0e3e52c85 (patch)
tree55378a31365ecec97ea60ea40d6cf4f22f94cacc /src/or/config.c
parent8b80362c76861b046105189a6d2613821b690906 (diff)
downloadtor-746d64e63121600fe694f11c15bd9dc0e3e52c85.tar
tor-746d64e63121600fe694f11c15bd9dc0e3e52c85.tar.gz
add in basic support for pidfiles
(patch courtesy aaron turner) svn:r565
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c
index d2b61a5c4..fc40e9cb7 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -153,6 +153,7 @@ static void config_assign(or_options_t *options, struct config_line *list) {
config_compare(list, "LogLevel", CONFIG_TYPE_STRING, &options->LogLevel) ||
config_compare(list, "DataDirectory", CONFIG_TYPE_STRING, &options->DataDirectory) ||
config_compare(list, "RouterFile", CONFIG_TYPE_STRING, &options->RouterFile) ||
+ config_compare(list, "PidFile", CONFIG_TYPE_STRING, &options->PidFile) ||
config_compare(list, "Nickname", CONFIG_TYPE_STRING, &options->Nickname) ||
config_compare(list, "Address", CONFIG_TYPE_STRING, &options->Address) ||
config_compare(list, "ExitPolicy", CONFIG_TYPE_STRING, &options->ExitPolicy) ||
@@ -201,6 +202,7 @@ int getconfig(int argc, char **argv, or_options_t *options) {
options->LogLevel = "info";
options->ExitPolicy = "reject 127.0.0.1:*,reject 18.244.0.188:25,accept *:*";
options->loglevel = LOG_DEBUG;
+ options->PidFile = "tor.pid";
options->DataDirectory = NULL;
options->CoinWeight = 0.1;
options->MaxConn = 900;