aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-11-06 23:07:42 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-11-06 23:07:42 +0000
commitf068b3e9f47388353b7b134131ce4b66d57f7df8 (patch)
treed829581ac7c1d316729a9a0ed2954a7127cd608c
parent3854c5ddf4eb267e4e53796eaa1051421dcb4e08 (diff)
downloadbusybox-w32-f068b3e9f47388353b7b134131ce4b66d57f7df8.tar.gz
busybox-w32-f068b3e9f47388353b7b134131ce4b66d57f7df8.tar.bz2
busybox-w32-f068b3e9f47388353b7b134131ce4b66d57f7df8.zip
sv: make default service dir configurable (Vladimir wants it)
-rw-r--r--runit/Config.in8
-rw-r--r--runit/sv.c2
2 files changed, 9 insertions, 1 deletions
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
36 sv reports the current status and controls the state of services 36 sv reports the current status and controls the state of services
37 monitored by the runsv supervisor. 37 monitored by the runsv supervisor.
38 38
39config SV_DEFAULT_SERVICE_DIR
40 string "Default directory for services"
41 default "/var/service"
42 depends on SV
43 help
44 Default directory for services.
45 Defaults to "/var/service"
46
39config SVLOGD 47config SVLOGD
40 bool "svlogd" 48 bool "svlogd"
41 default n 49 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)
417 unsigned i, want_exit; 417 unsigned i, want_exit;
418 char *x; 418 char *x;
419 char *action; 419 char *action;
420 const char *varservice = "/var/service/"; 420 const char *varservice = CONFIG_SV_DEFAULT_SERVICE_DIR;
421 unsigned services; 421 unsigned services;
422 char **servicex; 422 char **servicex;
423 unsigned waitsec = 7; 423 unsigned waitsec = 7;