mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +00:00
sv: make default service dir configurable (Vladimir wants it)
This commit is contained in:
parent
3854c5ddf4
commit
f068b3e9f4
@ -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
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user