From: Denis Vlasenko Date: Thu, 6 Nov 2008 23:07:42 +0000 (-0000) Subject: sv: make default service dir configurable (Vladimir wants it) X-Git-Tag: 1_13_0~18 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f068b3e9f47388353b7b134131ce4b66d57f7df8;p=oweals%2Fbusybox.git sv: make default service dir configurable (Vladimir wants it) --- diff --git a/runit/Config.in b/runit/Config.in index beff1e7e2..422ca7517 100644 --- a/runit/Config.in +++ b/runit/Config.in @@ -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 diff --git a/runit/sv.c b/runit/sv.c index 532bdb87d..7e5efdea9 100644 --- a/runit/sv.c +++ b/runit/sv.c @@ -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;