mirror of https://github.com/mirror/busybox.git
sv: make default service dir configurable (Vladimir wants it)
parent
3854c5ddf4
commit
f068b3e9f4
|
@ -36,6 +36,14 @@ config SV
|
|||
sv reports the current status and controls the state of services
|
||||
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
|
||||
bool "svlogd"
|
||||
default n
|
||||
|
|
|
@ -417,7 +417,7 @@ int sv_main(int argc, char **argv)
|
|||
unsigned i, want_exit;
|
||||
char *x;
|
||||
char *action;
|
||||
const char *varservice = "/var/service/";
|
||||
const char *varservice = CONFIG_SV_DEFAULT_SERVICE_DIR;
|
||||
unsigned services;
|
||||
char **servicex;
|
||||
unsigned waitsec = 7;
|
||||
|
|
Loading…
Reference in New Issue