svn commit: trunk/busybox/runit

vda at busybox.net vda at busybox.net
Thu Nov 6 23:07:42 UTC 2008


Author: vda
Date: 2008-11-06 15:07:42 -0800 (Thu, 06 Nov 2008)
New Revision: 23947

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



Modified:
   trunk/busybox/runit/Config.in
   trunk/busybox/runit/sv.c


Changeset:
Modified: trunk/busybox/runit/Config.in
===================================================================
--- trunk/busybox/runit/Config.in	2008-11-06 22:39:57 UTC (rev 23946)
+++ trunk/busybox/runit/Config.in	2008-11-06 23:07:42 UTC (rev 23947)
@@ -36,6 +36,14 @@
 	  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

Modified: trunk/busybox/runit/sv.c
===================================================================
--- trunk/busybox/runit/sv.c	2008-11-06 22:39:57 UTC (rev 23946)
+++ trunk/busybox/runit/sv.c	2008-11-06 23:07:42 UTC (rev 23947)
@@ -417,7 +417,7 @@
 	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;




More information about the busybox-cvs mailing list