Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/nova/guest/redis/config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,11 @@ std::string Config::get_log_file() {
return _get_string_value(LOG_FILE);
}

std::string Config::get_unix_socket() {
return _get_string_value(UNIX_SOCKET);
}

std::string Config::get_unix_socket_perms() {
return _get_string_value(UNIX_SOCKET_PERMISSION);
}
}}//end nova::redis
4 changes: 4 additions & 0 deletions src/nova/guest/redis/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ class Config

std::string get_append_filename();

std::string get_unix_socket();

std::string get_unix_socket_perms();

};


Expand Down
8 changes: 6 additions & 2 deletions src/nova/redis/RedisApp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,18 @@ void RedisApp::prepare(const optional<string> & json_root_password,
"daemonize yes\n"
"port %5%\n"
"logfile %6%\n"
"appendfilename %7%")
"appendfilename %7%\n"
"unixsocket %8\n"
"unixsocketperm %9")
% config.get_max_memory()
% config.get_db_dir()
% config.get_pidfile()
% config.get_db_filename()
% config.get_port()
% config.get_log_file()
% config.get_append_filename());
% config.get_append_filename()
% config.get_unix_socket()
% config.get_unix_socket_perms());

fd << local_conf;
fd.close();
Expand Down