sv: make default service dir configurable (Vladimir wants it)

This commit is contained in:
Denis Vlasenko 2008-11-06 23:07:42 +00:00
parent 3854c5ddf4
commit f068b3e9f4
2 changed files with 9 additions and 1 deletions

View File

@ -36,6 +36,14 @@ config SV
sv reports the current status and controls the state of services sv reports the current status and controls the state of services
monitored by the runsv supervisor. monitored by the runsv supervisor.
config SV_DEFAULT_SERVICE_DIR
string "Default directory for services"
default "/var/service"
depends on SV
help
Default directory for services.
Defaults to "/var/service"
config SVLOGD config SVLOGD
bool "svlogd" bool "svlogd"
default n default n

View File

@ -417,7 +417,7 @@ int sv_main(int argc, char **argv)
unsigned i, want_exit; unsigned i, want_exit;
char *x; char *x;
char *action; char *action;
const char *varservice = "/var/service/"; const char *varservice = CONFIG_SV_DEFAULT_SERVICE_DIR;
unsigned services; unsigned services;
char **servicex; char **servicex;
unsigned waitsec = 7; unsigned waitsec = 7;