← Commit list

f068b3e9f

Denis Vlasenko
Denis Vlasenko
2008-11-06
FAILED Duration: 30s

Subject

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

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

runit/Config.in+8 -0
@@ -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
runit/sv.c+1 -1
@@ -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;