summaryrefslogtreecommitdiffstats
path: root/src/bin/system-ml
diff options
context:
space:
mode:
authorPS <p@0x53.net>2026-02-01 12:02:03 +0100
committerPS <p@0x53.net>2026-02-01 12:02:03 +0100
commit980c5408489a3a3a56e49c3873f1bce6a0155cad (patch)
tree91df5fa62e7eca03d04b8ed114b20b337b99a556 /src/bin/system-ml
downloadgoetia-base-980c5408489a3a3a56e49c3873f1bce6a0155cad.tar.gz
goetia-base-980c5408489a3a3a56e49c3873f1bce6a0155cad.tar.bz2
goetia-base-980c5408489a3a3a56e49c3873f1bce6a0155cad.zip
version 0.2.0.0
Diffstat (limited to 'src/bin/system-ml')
-rwxr-xr-xsrc/bin/system-ml31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/bin/system-ml b/src/bin/system-ml
new file mode 100755
index 0000000..1937ac0
--- /dev/null
+++ b/src/bin/system-ml
@@ -0,0 +1,31 @@
+#!@shebangdir@/execlineb -P
+
+# ISC license.
+
+define LOGSCRIPT "#!@shebangdir@/execlineb -P
+
+# ISC license
+
+fdmove -c 1 2
+
+if { mkdir -p -m750 -- @syslogdir@/${NAME} }
+if { chown @loguser@:@loguser@ @syslogdir@/${NAME} }
+s6-setuidgid @loguser@
+s6-log -bd3 @logconfig@ @syslogdir@/${NAME}"
+
+if { rm -Rf @sysconfdir@/src/generated-logger }
+if { mkdir -p @sysconfdir@/src/generated-logger }
+
+elglob LONGRUNS @sysconfdir@/src/*/*
+forx -pE LONGRUN { ${LONGRUNS} }
+ if -x0 { eltest -f ${LONGRUN}/producer-for }
+ if -x0 -n { eltest -f ${LONGRUN}/no-ml }
+ if { echo Making the logger of ${LONGRUN} }
+ pipeline { sed -e s/-log$// -- ${LONGRUN}/producer-for }
+ withstdinas -E NAME
+ longrun-make
+ @sysconfdir@/src/generated-logger
+ ${NAME}
+ log
+ ${LOGSCRIPT}
+ @logdep@