From 5e95d487982b9362b544139b98d1da55fa6ef78c Mon Sep 17 00:00:00 2001 From: PS
Date: Sat, 7 Feb 2026 10:20:30 +0100 Subject: Add doc --- doc/bin/longrun-make.html | 141 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 doc/bin/longrun-make.html (limited to 'doc/bin/longrun-make.html') diff --git a/doc/bin/longrun-make.html b/doc/bin/longrun-make.html new file mode 100644 index 0000000..0c5d8c4 --- /dev/null +++ b/doc/bin/longrun-make.html @@ -0,0 +1,141 @@ + + +
+ + + +
+ goetia-base
+
+ goetia
+
+ Software
+
+ 0x53.net
+
+ longrun-make contains boilerplate code + required to create the + source directory + of a longrun service + based on strings. +
+longrun-make workingdir name type script dependencies+
type can only be one of log | srv.
+ dependencies can only be one of "dependency1 dependency2 ..." | none.
+ workingdir/name-type.
+ workingdir/name-type/type
+ (literal "type") and writes the line longrun to it.
+ workingdir/name-type/notification-fd
+ and writes the line 3 to it.
+ workingdir/name-type/run
+ and writes script to it.
+ type is log and the file
+ workingdir/name-type/consumer-for
+ does not contain the string name:
+ workingdir/name-type/consumer-for
+ using
+ s6-setlock.
+ name-srv to the file
+ workingdir/name-type/consumer-for
+ creating it if it does not exist.
+ workingdir/name-type/pipeline-name,
+ truncating it if it does exist and adds the string name.
+ type is srv:
+ workingdir/name-type/producer-for
+ is created, truncated and the string name-log is added.
+ dependencies is not none:
+ workingdir/name-type/dependencies.d
+ is created.
+ "dependency1 dependency2 ..." in
+ dependencies separated by spaces,
+ a file
+ workingdir/name-type/dependencies.d/dependency
+ is created.
+ + longrun-make is, by means of locking and checking for duplicates, + specifically designed to allow parallel creation of logging + source directories. +
+