Permalink
Browse files

supervisor: create child log dir

  • Loading branch information...
1 parent 9ef61db commit f38b33a4060c596f9a7e590518e3665065a0b16a @samuel committed Apr 20, 2012
@@ -25,6 +25,10 @@
description = "Path to the supervisor log file",
default = "/var/log/supervisord.log",
),
+ "supervisor.childlogdir": dict(
+ description = "Path where to place child log files",
+ default = "/var/log/supervisor",
+ ),
}
# if env.system.platform == "ubuntu":
@@ -17,6 +17,8 @@
action = "create")
Directory(os.path.dirname(env.config.supervisor.logfile),
action = "create")
+ Directory(env.config.supervisor.childlogdir,
+ action = "create")
if env.config.supervisor.config_path != "/etc/supervisord.conf":
Link("/etc/supervisord.conf",
to = env.config.supervisor.config_path)
@@ -11,7 +11,7 @@ pidfile={{ env.config.supervisor.pidfile }} ; (supervisord pidfile;default super
nodaemon=false ; (start in foreground if true;default false)
minfds=1024 ; (min. avail startup file descriptors;default 1024)
minprocs=200 ; (min. avail process descriptors;default 200)
-childlogdir=/var/log/supervisor
+childlogdir={{ env.config.supervisor.childlogdir }}
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

0 comments on commit f38b33a

Please sign in to comment.