]> git.proxmox.com Git - mirror_lxc.git/commitdiff
Use $localstatedir/log/lxc for default log path
authorRyota Ozaki <ozaki.ryota@gmail.com>
Sun, 17 Mar 2013 14:21:31 +0000 (23:21 +0900)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 19 Mar 2013 13:18:50 +0000 (09:18 -0400)
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>
configure.ac

index 0eae6559bb43a48c757b435cc425fbefc8b2ba51..dbc23791030951e68366df71705587d607818486 100644 (file)
@@ -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],