Permalink
Browse files

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: Ryota Ozaki <ozaki.ryota@gmail.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
  • Loading branch information...
1 parent 495c33c commit 89d556d83a2eb9c6bbe424a7bb0556f59bb137dc @ozaki-r ozaki-r committed with stgraber Mar 17, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 configure.ac
View
2 configure.ac
@@ -194,7 +194,7 @@ AM_CONDITIONAL([USE_CONFIGPATH_LOGS], [test "$use_configpath_logs" = "yes"])
if test "$use_configpath_logs" = "yes"; then
default_log_path="${with_config_path}"
else
- default_log_path="/var/log/lxc"
+ default_log_path="${localstatedir}/log/lxc"
fi
AC_ARG_WITH([log-path],

0 comments on commit 89d556d

Please sign in to comment.