From f891020ddf6b9c2137cc29c023dbdab4a4b46669 Mon Sep 17 00:00:00 2001 From: tuturuu Date: Mon, 12 Jan 2026 12:43:47 +0100 Subject: create unitparser module, add notes on future implementation --- init/src/services/mod.rs | 1 + init/src/services/unit_parser.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 init/src/services/mod.rs create mode 100644 init/src/services/unit_parser.rs (limited to 'init/src/services') diff --git a/init/src/services/mod.rs b/init/src/services/mod.rs new file mode 100644 index 0000000..bf86a6a --- /dev/null +++ b/init/src/services/mod.rs @@ -0,0 +1 @@ +pub mod unit_parser; diff --git a/init/src/services/unit_parser.rs b/init/src/services/unit_parser.rs new file mode 100644 index 0000000..a9898c1 --- /dev/null +++ b/init/src/services/unit_parser.rs @@ -0,0 +1,15 @@ +// This module defines unit settings parsing logig +// +// NOTE: ON UNIT PARSING LOGIC +// when parsing a unit in /etc/vigil/units/ we shoul ignore +// ANY broken/bad constructed toml unit configuration file +// without "crashing" logic. +// +// NOTE: ON GENERAL SERVICE LOGGING +// when vigil starts service, it should send out logs to vigil? +// or logs in such init systems are just taking the stdout+stderr +// of service and showing its output? idk 4 now, look into how its supposed to be + +use toml::display; + + -- cgit v1.2.3