summaryrefslogtreecommitdiff
path: root/init/src
diff options
context:
space:
mode:
authortuturuu <zedddiezxc@gmail.com>2026-01-12 12:43:47 +0100
committertuturuu <zedddiezxc@gmail.com>2026-01-12 12:43:47 +0100
commitf891020ddf6b9c2137cc29c023dbdab4a4b46669 (patch)
treed7ef92c0e025b160df59b3e577fabdac947a4af0 /init/src
parente61ae680f6bf29c8a36ff22c97dc85c1f4d7469f (diff)
create unitparser module, add notes on future implementation
Diffstat (limited to 'init/src')
-rw-r--r--init/src/services/mod.rs1
-rw-r--r--init/src/services/unit_parser.rs15
2 files changed, 16 insertions, 0 deletions
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;
+
+