log, stats and console socket go in their own directory

This commit is contained in:
Stefan Grundmann 2018-10-07 00:04:13 +00:00
parent 49ab6a94ce
commit 133884faf4

View file

@ -8,10 +8,10 @@ let tmpdir = Fpath.(v "/var" / "run" / "albatross")
let dbdir = Fpath.(v "/var" / "db" / "albatross")
let socket_path =
let path name = Fpath.(to_string (tmpdir / name + "sock")) in
let path name = Fpath.(to_string (tmpdir / "util" / name + "sock")) in
function
| `Console -> path "console"
| `Vmmd -> path "vmmd"
| `Vmmd -> Fpath.(to_string (tmpdir / "vmmd.sock"))
| `Stats -> path "stat"
| `Log -> path "log"