Commit 89d556d8 by Ryota Ozaki Committed by Stéphane Graber

Use $localstatedir/log/lxc for default log path

When we install lxc by manual (configure; make; make install), all files are installed under /usr/local/. Configuration files and setting files of containers are stored under /usr/local/ too, however, only log files are stored under /var/log/ not /usr/local/var/log. This patch changes the default log path to $localstatedir/log/lxc (by default $localstatedir is /usr/local/var) where is an ordinary directory, which is probably expected and unsurprising. Signed-off-by: 's avatarRyota Ozaki <ozaki.ryota@gmail.com> Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
parent 495c33c8
...@@ -194,7 +194,7 @@ AM_CONDITIONAL([USE_CONFIGPATH_LOGS], [test "$use_configpath_logs" = "yes"]) ...@@ -194,7 +194,7 @@ AM_CONDITIONAL([USE_CONFIGPATH_LOGS], [test "$use_configpath_logs" = "yes"])
if test "$use_configpath_logs" = "yes"; then if test "$use_configpath_logs" = "yes"; then
default_log_path="${with_config_path}" default_log_path="${with_config_path}"
else else
default_log_path="/var/log/lxc" default_log_path="${localstatedir}/log/lxc"
fi fi
AC_ARG_WITH([log-path], AC_ARG_WITH([log-path],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment