diff options
| author | Robert Günzler <r@gnzler.io> | 2026-02-10 12:32:48 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2026-02-10 12:41:25 +0100 |
| commit | 63feeb9f369fc6176e85c1c2d8fcc863caad1946 (patch) | |
| tree | 41cd5d2d1ec36e74e464caab722cc9b460153f04 /os/etc/s6-rc/make-logservice | |
| parent | 5bd0a4aca65ecb9818ef1285982d160b6b6ff665 (diff) | |
start new
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'os/etc/s6-rc/make-logservice')
| -rwxr-xr-x | os/etc/s6-rc/make-logservice | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/os/etc/s6-rc/make-logservice b/os/etc/s6-rc/make-logservice deleted file mode 100755 index da53a75..0000000 --- a/os/etc/s6-rc/make-logservice +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh -set -eu - -sv=${1?:need service name.} -basedir=/etc/s6-rc/src - -mkdir "${basedir}/${sv}-srv" "${basedir}/${sv}-log" - -( - cd "${basedir}/${sv}-srv" - echo longrun > type - echo "${sv}-log" > producer-for - cat <<-EOF > run - #!/bin/execlineb -P - - fdmove -c 2 1 - exec sh -c 'echo TODO >&2' - EOF -) - -( - cd "${basedir}/${sv}-log" - echo longrun > type - echo 3 > notification-fd - echo "${sv}-srv" > consumer-for - echo "${sv}" > pipeline-name - cat <<-EOF > run - #!/bin/execlineb -P - - envfile /etc/s6-rc/config/log.conf - envfile -I /etc/s6-rc/config/${sv}.conf - importas -sCuD "n2 s2000000 T" LOG_DIRECTIVES LOG_DIRECTIVES - importas -sCuD "/run/log" LOG_DIR LOG_DIR - - foreground { install -d \${LOG_DIR}/${sv} } - s6-log -d3 -b -- \${LOG_DIRECTIVES} \${LOG_DIR}/${sv} - EOF -) |