tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
xentools4*: /var/lock and /var/lib/xenstored -> /var/run
I propose two changes:
xentools as we configure it today end up with XEN_LOCK_DIR as /var/lock.
At least xl(1) ends up in use /var/lib/xl as lock directory.
That is wrong under NetBSD as /var/lock doesn't exist. /var/run
is more appropriate because that gets cleaned at boot.
Also XEN_LIB_STORED ends up as /var/lib/xenstored and xenstored puts its
"tdb" into that directory. However that file is ephemeral and must be
removed after reboots. Debian moved that file to /var/run/xenstored and
that was also recommended as appropriate location in
https://blog.xenproject.org/2014/05/01/9124/.
I guess I could be talked into removing xenstored/tdb immediately before
starting xenstored in the rc.d script, too. I'm not sure if xenstored can
be restarted and recover from the "tdb" file.
--chris
patch-.._m4_paths.m4:
$NetBSD$
The xenstored database is ephemeral and must be removed during system boot.
Put it into /var/run/xenstored. The ocaml xenstored does that too.
/var/lock doesn't exist on NetBSD, use /var/run instead.
--- ../m4/paths.m4.orig 2015-11-03 10:11:18.000000000 +0100
+++ ../m4/paths.m4 2016-03-24 21:27:43.000000000 +0100
@@ -83,7 +83,7 @@
XEN_LOG_DIR=$localstatedir/log/xen
AC_SUBST(XEN_LOG_DIR)
-XEN_LIB_STORED=$localstatedir/lib/xenstored
+XEN_LIB_STORED=$localstatedir/run/xenstored
AC_SUBST(XEN_LIB_STORED)
SHAREDIR=$prefix/share
@@ -103,7 +103,7 @@
case "$host_os" in
*freebsd*) XEN_LOCK_DIR=$localstatedir/lib ;;
-*netbsd*) XEN_LOCK_DIR=$localstatedir/lib ;;
+*netbsd*) XEN_LOCK_DIR=$localstatedir/run ;;
*) XEN_LOCK_DIR=$localstatedir/lock ;;
esac
AC_SUBST(XEN_LOCK_DIR)
Home |
Main Index |
Thread Index |
Old Index