summaryrefslogtreecommitdiff
path: root/src/startup.ml
AgeCommit message (Collapse)Author
2025-02-06T6946: add test function and executableJohn Estabrook
2025-02-06T6946: add log message on readJohn Estabrook
2024-10-27T6718: set perms on socket for group write accessJohn Estabrook
2024-10-27T6718: restrict directory existence check to validators dirJohn Estabrook
2024-10-27T6718: read reference tree json file on startupJohn Estabrook
2024-10-27T6718: reorganize layout for dune build of libs/executablesJohn Estabrook
2024-10-27T6718: update build system, drop batteries, and adjust for lib changesJohn Estabrook
Update as needed for use with contemporary vyos1x-config: . update build system to use dune . drop use of batteries . update for protoc breaking changes in versions >= 3.0 . remove files now in vyos1x-config (config_tree et. al.; parsing)
2018-02-16Delete the old socket file if it exists.Daniil Baturin
Since there's no REUSEADDR semantic for UNIX domain sockets, that's best we can do.
2018-02-16Add logging of interface definition file loading.Daniil Baturin
Move the high level load_interface_definitions function from Reference_tree to Startup.
2017-12-12Add config load upon startup.Daniil Baturin
2017-12-12Rename the Startup.load_config to load_daemon_config to avoid ambiguity with ↵Daniil Baturin
the appliance config.
2017-12-12Lwt is luckily past 3.0 now, remove stuff that needed versioned functions.Daniil Baturin
2017-01-15Add functionality for socket communication.Daniil Baturin
The Message module contains read and write functions that take care of the wire protocol, which sends a 4 byte length header before every message. They take a bytes buffer and don't care about its contents. The Vyconf_client module has high level functions for interfacing with vyconfd. Functions for creating a socket and creating a server loop are in Startup. The rest is, for now at least, right in vyconfd. Notes: Message.read/write probably should be wrapped in Lwt_io.atomic We need to find out if it's safe to reuse Pbrt.Encoder.t or we really should create it every time.
2016-12-23Move housekeeping stuff from vyconfd.ml to Startup module.Daniil Baturin