1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
// The daemon's name.
"name": "name",
// The daemon's working directory.
//
// Must already exist.
"work_dir": "/var/lib/work_dir",
// Used to receive API requests from the user library client.
"uds_api_path": "/var/run/uds.sock",
// The path where the daemon should write its PID file.
"pid_file": "/var/run/hub.pid",
// Aranya sync server address.
"sync_addr": "0.0.0.0:4321",
// AFC configuration.
"afc": {
// Shared memory path.
"shm_path": "/hub",
// Unlink `shm_path` before creating the shared memory?
//
// Ignored if `afc.create` is false.
"unlink_on_startup": false,
// Unlink `shm_path` when the daemon exits?
//
// If false, the shared memory will persist across daemon
// restarts.
"unlink_at_exit": false,
// Create the shared memory?
//
// If true, the shared memory must not already exist.
"create": true,
// Maximum number of channels AFC should support.
"max_chans": 100,
}
}