dot

packages and services management
Log | Files | Refs | README

commit 34820604bf04552cda282ea083fccdab9af44afb
parent 5be481d0d4bea66ed6ba57e2926b0242d544a609
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sat, 22 Sep 2018 18:35:13 +0200

imported s6 recipes here

Diffstat:
Rconfigure -> dot-conf | 0
Dinit | 28----------------------------
As6-base-contents | 2++
As6-conf | 11+++++++++++
As6-init | 28++++++++++++++++++++++++++++
As6-load | 7+++++++
As6/bird/bird-log/consumer-for | 1+
As6/bird/bird-log/pipeline-name | 1+
As6/bird/bird-log/run | 2++
As6/bird/bird-log/type | 1+
As6/bird/bird-run/producer-for | 1+
As6/bird/bird-run/run | 4++++
As6/bird/bird-run/type | 1+
As6/cherrymusic/cherrymusic-log/consumer-for | 1+
As6/cherrymusic/cherrymusic-log/pipeline-name | 1+
As6/cherrymusic/cherrymusic-log/run | 2++
As6/cherrymusic/cherrymusic-log/type | 1+
As6/cherrymusic/cherrymusic-run/producer-for | 1+
As6/cherrymusic/cherrymusic-run/run | 8++++++++
As6/cherrymusic/cherrymusic-run/type | 1+
As6/collectd/collectd-log/consumer-for | 1+
As6/collectd/collectd-log/pipeline-name | 1+
As6/collectd/collectd-log/run | 2++
As6/collectd/collectd-log/type | 1+
As6/collectd/collectd-run/data/conf | 66++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
As6/collectd/collectd-run/producer-for | 1+
As6/collectd/collectd-run/run | 5+++++
As6/collectd/collectd-run/type | 1+
As6/djbdns/axfrdns-log/consumer-for | 1+
As6/djbdns/axfrdns-log/pipeline-name | 1+
As6/djbdns/axfrdns-log/run | 2++
As6/djbdns/axfrdns-log/type | 1+
As6/djbdns/axfrdns-run/env/ROOT | 1+
As6/djbdns/axfrdns-run/producer-for | 1+
As6/djbdns/axfrdns-run/run | 10++++++++++
As6/djbdns/axfrdns-run/type | 1+
As6/djbdns/dnscache-log/consumer-for | 1+
As6/djbdns/dnscache-log/pipeline-name | 1+
As6/djbdns/dnscache-log/run | 2++
As6/djbdns/dnscache-log/type | 1+
As6/djbdns/dnscache-run/data/ip/127.0.0.1 | 0
As6/djbdns/dnscache-run/data/servers/@ | 0
As6/djbdns/dnscache-run/env/CACHESIZE | 1+
As6/djbdns/dnscache-run/env/DATALIMIT | 1+
As6/djbdns/dnscache-run/env/IP | 1+
As6/djbdns/dnscache-run/env/IPSEND | 1+
As6/djbdns/dnscache-run/env/ROOT | 1+
As6/djbdns/dnscache-run/producer-for | 1+
As6/djbdns/dnscache-run/run | 12++++++++++++
As6/djbdns/dnscache-run/type | 1+
As6/djbdns/tinydns-log/consumer-for | 1+
As6/djbdns/tinydns-log/pipeline-name | 1+
As6/djbdns/tinydns-log/run | 2++
As6/djbdns/tinydns-log/type | 1+
As6/djbdns/tinydns-run/data/Makefile | 2++
As6/djbdns/tinydns-run/data/add-alias | 2++
As6/djbdns/tinydns-run/data/add-childns | 2++
As6/djbdns/tinydns-run/data/add-host | 2++
As6/djbdns/tinydns-run/data/add-mx | 2++
As6/djbdns/tinydns-run/data/add-ns | 2++
As6/djbdns/tinydns-run/env/IP | 1+
As6/djbdns/tinydns-run/env/ROOT | 1+
As6/djbdns/tinydns-run/producer-for | 1+
As6/djbdns/tinydns-run/run | 8++++++++
As6/djbdns/tinydns-run/type | 1+
As6/djbdns/walldns-log/consumer-for | 1+
As6/djbdns/walldns-log/pipeline-name | 1+
As6/djbdns/walldns-log/run | 2++
As6/djbdns/walldns-log/type | 1+
As6/djbdns/walldns-run/env/IP | 1+
As6/djbdns/walldns-run/env/ROOT | 1+
As6/djbdns/walldns-run/producer-for | 1+
As6/djbdns/walldns-run/run | 7+++++++
As6/djbdns/walldns-run/type | 1+
As6/fossil/fossil-log/consumer-for | 1+
As6/fossil/fossil-log/pipeline-name | 1+
As6/fossil/fossil-log/run | 2++
As6/fossil/fossil-log/type | 1+
As6/fossil/fossil-run/producer-for | 1+
As6/fossil/fossil-run/run | 10++++++++++
As6/fossil/fossil-run/type | 1+
As6/ftpd-run/env/IP | 1+
As6/ftpd-run/run | 7+++++++
As6/geomyidae/geomyidae-log/consumer-for | 1+
As6/geomyidae/geomyidae-log/pipeline-name | 1+
As6/geomyidae/geomyidae-log/run | 2++
As6/geomyidae/geomyidae-log/type | 1+
As6/geomyidae/geomyidae-run/env/BASE | 1+
As6/geomyidae/geomyidae-run/env/HOST | 1+
As6/geomyidae/geomyidae-run/env/PORT | 1+
As6/geomyidae/geomyidae-run/producer-for | 1+
As6/geomyidae/geomyidae-run/run | 14++++++++++++++
As6/geomyidae/geomyidae-run/type | 1+
As6/git/git-daemon-log/consumer-for | 1+
As6/git/git-daemon-log/pipeline-name | 1+
As6/git/git-daemon-log/run | 2++
As6/git/git-daemon-log/type | 1+
As6/git/git-daemon-run/producer-for | 1+
As6/git/git-daemon-run/run | 8++++++++
As6/git/git-daemon-run/type | 1+
As6/ii/ii-tcp-log/consumer-for | 1+
As6/ii/ii-tcp-log/pipeline-name | 1+
As6/ii/ii-tcp-log/run | 2++
As6/ii/ii-tcp-log/type | 1+
As6/ii/ii-tcp-run/env/HOST | 1+
As6/ii/ii-tcp-run/env/NAME | 0
As6/ii/ii-tcp-run/env/NICK | 1+
As6/ii/ii-tcp-run/env/PASS | 0
As6/ii/ii-tcp-run/env/PORT | 1+
As6/ii/ii-tcp-run/env/USER | 1+
As6/ii/ii-tcp-run/finish | 2++
As6/ii/ii-tcp-run/producer-for | 1+
As6/ii/ii-tcp-run/run | 24++++++++++++++++++++++++
As6/ii/ii-tcp-run/type | 1+
As6/ii/ii-tls-log/consumer-for | 1+
As6/ii/ii-tls-log/pipeline-name | 1+
As6/ii/ii-tls-log/run | 2++
As6/ii/ii-tls-log/type | 1+
As6/ii/ii-tls-run/data/.empty | 0
As6/ii/ii-tls-run/env/CAFILE | 1+
As6/ii/ii-tls-run/env/HOST | 1+
As6/ii/ii-tls-run/env/NAME | 0
As6/ii/ii-tls-run/env/NICK | 1+
As6/ii/ii-tls-run/env/PASS | 0
As6/ii/ii-tls-run/env/PORT | 1+
As6/ii/ii-tls-run/env/USER | 1+
As6/ii/ii-tls-run/finish | 2++
As6/ii/ii-tls-run/producer-for | 1+
As6/ii/ii-tls-run/run | 22++++++++++++++++++++++
As6/ii/ii-tls-run/type | 1+
As6/ii/ii/contents | 2++
As6/ii/ii/type | 1+
As6/mpop/mpop-log/consumer-for | 1+
As6/mpop/mpop-log/pipeline-name | 1+
As6/mpop/mpop-log/run | 2++
As6/mpop/mpop-log/type | 1+
As6/mpop/mpop-run/data/mpoprc | 15+++++++++++++++
As6/mpop/mpop-run/env/USER | 1+
As6/mpop/mpop-run/producer-for | 1+
As6/mpop/mpop-run/run | 14++++++++++++++
As6/mpop/mpop-run/type | 1+
As6/ngircd/ngircd-log/consumer-for | 1+
As6/ngircd/ngircd-log/pipeline-name | 1+
As6/ngircd/ngircd-log/run | 2++
As6/ngircd/ngircd-log/type | 1+
As6/ngircd/ngircd-run/data/conf | 45+++++++++++++++++++++++++++++++++++++++++++++
As6/ngircd/ngircd-run/data/motd | 37+++++++++++++++++++++++++++++++++++++
As6/ngircd/ngircd-run/data/tls | 8++++++++
As6/ngircd/ngircd-run/producer-for | 1+
As6/ngircd/ngircd-run/run | 5+++++
As6/ngircd/ngircd-run/type | 1+
As6/ntpclient/ntpclient-log/consumer-for | 1+
As6/ntpclient/ntpclient-log/pipeline-name | 1+
As6/ntpclient/ntpclient-log/run | 2++
As6/ntpclient/ntpclient-log/type | 1+
As6/ntpclient/ntpclient-run/env/HOST | 1+
As6/ntpclient/ntpclient-run/producer-for | 1+
As6/ntpclient/ntpclient-run/run | 6++++++
As6/ntpclient/ntpclient-run/type | 1+
As6/ok-all/contents | 2++
As6/ok-all/type | 1+
As6/opentracker/opentracker-log/consumer-for | 1+
As6/opentracker/opentracker-log/pipeline-name | 1+
As6/opentracker/opentracker-log/run | 2++
As6/opentracker/opentracker-log/type | 1+
As6/opentracker/opentracker-run/producer-for | 1+
As6/opentracker/opentracker-run/run | 5+++++
As6/opentracker/opentracker-run/type | 1+
As6/publicfile/ftpd-log/consumer-for | 1+
As6/publicfile/ftpd-log/pipeline-name | 1+
As6/publicfile/ftpd-log/run | 2++
As6/publicfile/ftpd-log/type | 1+
As6/publicfile/ftpd-run/producer-for | 1+
As6/publicfile/ftpd-run/run | 7+++++++
As6/publicfile/ftpd-run/type | 1+
As6/publicfile/httpd-log/consumer-for | 1+
As6/publicfile/httpd-log/pipeline-name | 1+
As6/publicfile/httpd-log/run | 2++
As6/publicfile/httpd-log/type | 1+
As6/publicfile/httpd-run/producer-for | 1+
As6/publicfile/httpd-run/run | 7+++++++
As6/publicfile/httpd-run/type | 1+
As6/qemu/qemu-tap-log/consumer-for | 1+
As6/qemu/qemu-tap-log/pipeline-name | 1+
As6/qemu/qemu-tap-log/run | 2++
As6/qemu/qemu-tap-log/type | 1+
As6/qemu/qemu-tap-run/producer-for | 1+
As6/qemu/qemu-tap-run/run | 23+++++++++++++++++++++++
As6/qemu/qemu-tap-run/type | 1+
As6/qemu/qemu-user-log/consumer-for | 1+
As6/qemu/qemu-user-log/pipeline-name | 1+
As6/qemu/qemu-user-log/run | 2++
As6/qemu/qemu-user-log/type | 1+
As6/qemu/qemu-user-run/env/NAME | 0
As6/qemu/qemu-user-run/producer-for | 1+
As6/qemu/qemu-user-run/run | 21+++++++++++++++++++++
As6/qemu/qemu-user-run/type | 1+
As6/qmail/qmail-pop3d-log/consumer-for | 1+
As6/qmail/qmail-pop3d-log/pipeline-name | 1+
As6/qmail/qmail-pop3d-log/run | 2++
As6/qmail/qmail-pop3d-log/type | 1+
As6/qmail/qmail-pop3d-run/env/CERTFILE | 1+
As6/qmail/qmail-pop3d-run/env/HOST | 1+
As6/qmail/qmail-pop3d-run/env/KEYFILE | 1+
As6/qmail/qmail-pop3d-run/env/MAILDIR | 1+
As6/qmail/qmail-pop3d-run/producer-for | 1+
As6/qmail/qmail-pop3d-run/run | 11+++++++++++
As6/qmail/qmail-pop3d-run/type | 1+
As6/qmail/qmail-send-log/consumer-for | 1+
As6/qmail/qmail-send-log/pipeline-name | 1+
As6/qmail/qmail-send-log/run | 2++
As6/qmail/qmail-send-log/type | 1+
As6/qmail/qmail-send-run/env/MAILDIR | 1+
As6/qmail/qmail-send-run/producer-for | 1+
As6/qmail/qmail-send-run/run | 7+++++++
As6/qmail/qmail-send-run/type | 1+
As6/qmail/qmail-smtpd-log/consumer-for | 1+
As6/qmail/qmail-smtpd-log/pipeline-name | 1+
As6/qmail/qmail-smtpd-log/run | 2++
As6/qmail/qmail-smtpd-log/type | 1+
As6/qmail/qmail-smtpd-run/producer-for | 1+
As6/qmail/qmail-smtpd-run/run | 19+++++++++++++++++++
As6/qmail/qmail-smtpd-run/tls | 8++++++++
As6/qmail/qmail-smtpd-run/type | 1+
As6/qmail/qmail/contents | 2++
As6/qmail/qmail/type | 1+
As6/quark-tor/quark-tor-log/consumer-for | 1+
As6/quark-tor/quark-tor-log/pipeline-name | 1+
As6/quark-tor/quark-tor-log/run | 2++
As6/quark-tor/quark-tor-log/type | 1+
As6/quark-tor/quark-tor-run/producer-for | 1+
As6/quark-tor/quark-tor-run/run | 16++++++++++++++++
As6/quark-tor/quark-tor-run/type | 1+
As6/quark/quark-log/consumer-for | 1+
As6/quark/quark-log/pipeline-name | 1+
As6/quark/quark-log/run | 2++
As6/quark/quark-log/type | 1+
As6/quark/quark-run/producer-for | 1+
As6/quark/quark-run/run | 13+++++++++++++
As6/quark/quark-run/type | 1+
As6/ratox/ratox-log/consumer-for | 1+
As6/ratox/ratox-log/pipeline-name | 1+
As6/ratox/ratox-log/run | 2++
As6/ratox/ratox-log/type | 1+
As6/ratox/ratox-run/producer-for | 1+
As6/ratox/ratox-run/run | 10++++++++++
As6/ratox/ratox-run/type | 1+
As6/s6-logger/run | 7+++++++
As6/snooze-acme-client/snooze-acme-client-log/consumer-for | 1+
As6/snooze-acme-client/snooze-acme-client-log/pipeline-name | 1+
As6/snooze-acme-client/snooze-acme-client-log/run | 2++
As6/snooze-acme-client/snooze-acme-client-log/type | 1+
As6/snooze-acme-client/snooze-acme-client-run/data/conf | 17+++++++++++++++++
As6/snooze-acme-client/snooze-acme-client-run/producer-for | 1+
As6/snooze-acme-client/snooze-acme-client-run/run | 6++++++
As6/snooze-acme-client/snooze-acme-client-run/type | 1+
As6/snooze-pax/job | 8++++++++
As6/snooze-pax/run | 3+++
As6/snooze-pax/type | 1+
As6/snooze-tls/snooze-tls-cert-log/consumer-for | 1+
As6/snooze-tls/snooze-tls-cert-log/pipeline-name | 1+
As6/snooze-tls/snooze-tls-cert-log/run | 2++
As6/snooze-tls/snooze-tls-cert-log/type | 1+
As6/snooze-tls/snooze-tls-cert-run/data/... | 0
As6/snooze-tls/snooze-tls-cert-run/env/HOST | 1+
As6/snooze-tls/snooze-tls-cert-run/producer-for | 1+
As6/snooze-tls/snooze-tls-cert-run/run | 16++++++++++++++++
As6/snooze-tls/snooze-tls-cert-run/type | 1+
As6/snooze-tls/snooze-tls-dhparam-log/consumer-for | 1+
As6/snooze-tls/snooze-tls-dhparam-log/pipeline-name | 1+
As6/snooze-tls/snooze-tls-dhparam-log/run | 2++
As6/snooze-tls/snooze-tls-dhparam-log/type | 1+
As6/snooze-tls/snooze-tls-dhparam-run/producer-for | 1+
As6/snooze-tls/snooze-tls-dhparam-run/run | 5+++++
As6/snooze-tls/snooze-tls-dhparam-run/type | 1+
As6/tinc/tinc-log/consumer-for | 1+
As6/tinc/tinc-log/pipeline-name | 1+
As6/tinc/tinc-log/run | 2++
As6/tinc/tinc-log/type | 1+
As6/tinc/tinc-run/data/conf.d/common.conf | 2++
As6/tinc/tinc-run/data/hosts/kroa | 13+++++++++++++
As6/tinc/tinc-run/data/hosts/nas | 13+++++++++++++
As6/tinc/tinc-run/data/hosts/pdmg | 12++++++++++++
As6/tinc/tinc-run/data/hosts/rpi | 13+++++++++++++
As6/tinc/tinc-run/data/hosts/t470s | 12++++++++++++
As6/tinc/tinc-run/data/tinc-up | 11+++++++++++
As6/tinc/tinc-run/producer-for | 1+
As6/tinc/tinc-run/run | 8++++++++
As6/tinc/tinc-run/type | 1+
As6/tinysshd/tinysshd-log/consumer-for | 1+
As6/tinysshd/tinysshd-log/pipeline-name | 1+
As6/tinysshd/tinysshd-log/run | 2++
As6/tinysshd/tinysshd-log/type | 1+
As6/tinysshd/tinysshd-run/data/... | 0
As6/tinysshd/tinysshd-run/env/PORT | 1+
As6/tinysshd/tinysshd-run/producer-for | 1+
As6/tinysshd/tinysshd-run/run | 12++++++++++++
As6/tinysshd/tinysshd-run/type | 1+
As6/tor/tor-log/consumer-for | 1+
As6/tor/tor-log/pipeline-name | 1+
As6/tor/tor-log/run | 2++
As6/tor/tor-log/type | 1+
As6/tor/tor-run/data/conf | 26++++++++++++++++++++++++++
As6/tor/tor-run/producer-for | 1+
As6/tor/tor-run/run | 5+++++
As6/tor/tor-run/type | 1+
As6/transmission/transmission-log/consumer-for | 1+
As6/transmission/transmission-log/pipeline-name | 1+
As6/transmission/transmission-log/run | 2++
As6/transmission/transmission-log/type | 1+
As6/transmission/transmission-run/producer-for | 1+
As6/transmission/transmission-run/run | 4++++
As6/transmission/transmission-run/type | 1+
As6/u9fs/u9fs-log/consumer-for | 1+
As6/u9fs/u9fs-log/pipeline-name | 1+
As6/u9fs/u9fs-log/run | 2++
As6/u9fs/u9fs-log/type | 1+
As6/u9fs/u9fs-mount-log/consumer-for | 1+
As6/u9fs/u9fs-mount-log/pipeline-name | 1+
As6/u9fs/u9fs-mount-log/run | 2++
As6/u9fs/u9fs-mount-log/type | 1+
As6/u9fs/u9fs-mount-run/down | 4++++
As6/u9fs/u9fs-mount-run/producer-for | 1+
As6/u9fs/u9fs-mount-run/type | 1+
As6/u9fs/u9fs-mount-run/up | 5+++++
As6/u9fs/u9fs-run/producer-for | 1+
As6/u9fs/u9fs-run/run | 7+++++++
As6/u9fs/u9fs-run/type | 1+
As6/venti/venti-log/consumer-for | 1+
As6/venti/venti-log/pipeline-name | 1+
As6/venti/venti-log/run | 2++
As6/venti/venti-log/type | 1+
As6/venti/venti-run/data/conf | 8++++++++
As6/venti/venti-run/data/fmt | 9+++++++++
As6/venti/venti-run/producer-for | 1+
As6/venti/venti-run/run | 10++++++++++
As6/venti/venti-run/type | 1+
337 files changed, 1076 insertions(+), 28 deletions(-)

diff --git a/configure b/dot-conf diff --git a/init b/init @@ -1,28 +0,0 @@ -#!/usr/bin/env execlineb - -if { s6-rmrf /run/s6 /var/s6/init } -if { s6-mkdir -p /run/s6 /var/s6/init /log/ } -if { s6-hiercopy /etc/s6/s6-svscan-log /var/s6/init/s6-svscan-log } -if { s6-hiercopy /etc/s6/s6-svscan-run /var/s6/init/.s6-svscan } -if { s6-ln -sf /var/s6/init/s6-svscan-log /var/s6/init/.s6-svscan /run/s6 } - -background -{ - # wait until s6-svscan starts - redirfd -w 1 /var/s6/init/s6-svscan-log/fifo - - s6-setsid -- - fdmove -c 1 2 - - backtick -n t { s6-clock } - importas t t - if { s6-rc-compile /var/s6/compiled${t} /var/s6/source } - if { s6-rc-init -c /var/s6/compiled${t} -l /var/s6/live /run/s6 } - if { s6-ln -nsf /var/s6/compiled${t} /var/s6/compiled } -} - -cd /var/s6 -redirfd -r 0 /dev/null -redirfd -wnb 1 /var/s6/init/s6-svscan-log/fifo -fdmove -c 2 1 -s6-svscan -t0 /run/s6 diff --git a/s6-base-contents b/s6-base-contents @@ -0,0 +1,2 @@ +s6rc-fdholder +s6rc-oneshot-runner diff --git a/s6-conf b/s6-conf @@ -0,0 +1,11 @@ +#!/bin/sh -e +# install configuration files with symlinks and clone bin + +cd "$(dirname "$0")" +mkdir -p /etc/s6 /var/s6 /run/s6 +cp -RLf s6/s6-logger /var/s6 +cp -RLf s6/ok-all /etc/s6 +rm -rf /var/s6/s6-logger/fifo +mkfifo /var/s6/s6-logger/fifo +touch /etc/s6/ok-all/contents +sort -u -o s6/ok-all/contents s6-base-contents /etc/s6/ok-all/contents diff --git a/s6-init b/s6-init @@ -0,0 +1,28 @@ +#!/usr/bin/env execlineb + +if { s6-rmrf /run/s6 /var/s6/init } +if { s6-mkdir -p /run/s6 /var/s6 /var/log } +if { s6-ln -sf /var/s6/s6-logger /run/s6 } + +background +{ + # wait until s6-svscan starts + redirfd -w 1 /var/s6/s6-logger/fifo + + s6-setsid -- + fdmove -c 1 2 + + backtick -n t { s6-clock } + importas t t + if { s6-rc-compile /var/s6/compiled${t} /etc/s6 } + if { s6-rc-init -c /var/s6/compiled${t} -l /var/s6/live /run/s6 } + if { s6-ln -nsf /var/s6/compiled${t} /var/s6/compiled } + if { s6-rc -l /var/s6/live -u change ok-all } + if { echo ok } +} + +cd /var/s6 +redirfd -r 0 /dev/null +redirfd -wnb 1 /var/s6/s6-logger/fifo +fdmove -c 2 1 +s6-svscan -t0 /run/s6 diff --git a/s6-load b/s6-load @@ -0,0 +1,7 @@ +#!/usr/bin/env execlineb + +backtick t { s6-clock } importas t t +if { s6-rc-compile "/var/s6/compiled$t" /etc/s6 } +if { s6-rc-update -l /var/s6/live "/var/s6/compiled$t" } +if { s6-ln -nsf "/var/s6/compiled$t" /var/s6/compiled } +if { s6-rc -l /var/s6/live -u change ok-all } diff --git a/s6/bird/bird-log/consumer-for b/s6/bird/bird-log/consumer-for @@ -0,0 +1 @@ +bird-run diff --git a/s6/bird/bird-log/pipeline-name b/s6/bird/bird-log/pipeline-name @@ -0,0 +1 @@ +bird diff --git a/s6/bird/bird-log/run b/s6/bird/bird-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/bird diff --git a/s6/bird/bird-log/type b/s6/bird/bird-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/bird/bird-run/producer-for b/s6/bird/bird-run/producer-for @@ -0,0 +1 @@ +bird-log diff --git a/s6/bird/bird-run/run b/s6/bird/bird-run/run @@ -0,0 +1,4 @@ +#!/usr/bin/env execlineb +fdmove -c 2 1 + +bird -f diff --git a/s6/bird/bird-run/type b/s6/bird/bird-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/cherrymusic/cherrymusic-log/consumer-for b/s6/cherrymusic/cherrymusic-log/consumer-for @@ -0,0 +1 @@ +cherrymusic-run diff --git a/s6/cherrymusic/cherrymusic-log/pipeline-name b/s6/cherrymusic/cherrymusic-log/pipeline-name @@ -0,0 +1 @@ +cherrymusic diff --git a/s6/cherrymusic/cherrymusic-log/run b/s6/cherrymusic/cherrymusic-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/cherrymusic diff --git a/s6/cherrymusic/cherrymusic-log/type b/s6/cherrymusic/cherrymusic-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/cherrymusic/cherrymusic-run/producer-for b/s6/cherrymusic/cherrymusic-run/producer-for @@ -0,0 +1 @@ +cherrymusic-log diff --git a/s6/cherrymusic/cherrymusic-run/run b/s6/cherrymusic/cherrymusic-run/run @@ -0,0 +1,8 @@ +#!/usr/bin/env execlineb +# web-based music streaming +fdmove -c 2 1 + +python3.6 +/pack/src/cherrymusic/cherrymusic + --setup + --port 8080 diff --git a/s6/cherrymusic/cherrymusic-run/type b/s6/cherrymusic/cherrymusic-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/collectd/collectd-log/consumer-for b/s6/collectd/collectd-log/consumer-for @@ -0,0 +1 @@ +collectd-run diff --git a/s6/collectd/collectd-log/pipeline-name b/s6/collectd/collectd-log/pipeline-name @@ -0,0 +1 @@ +collectd diff --git a/s6/collectd/collectd-log/run b/s6/collectd/collectd-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/collectd diff --git a/s6/collectd/collectd-log/type b/s6/collectd/collectd-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/collectd/collectd-run/data/conf b/s6/collectd/collectd-run/data/conf @@ -0,0 +1,66 @@ +#Hostname "localhost" +#FQDNLookup true + +AutoLoadPlugin true + +Interval 900 +MaxReadInterval 86400 +Timeout 2 +ReadThreads 5 +WriteThreads 5 +WriteQueueLimitHigh 1000000 +WriteQueueLimitLow 800000 + +<Plugin logfile> + LogLevel info + File STDOUT + Timestamp true + PrintSeverity true +</Plugin> + +<Plugin cpu> + ReportByCpu false + ReportByState true + ValuesPercentage true + ReportNumCpu false + ReportGuestState false + SubtractGuestState true +</Plugin> + +<Plugin csv> + DataDir "/data/collectd" +</Plugin> + +#<Plugin df> +# Device "/dev/hda1" +# MountPoint "/data" +# FSType "ext3" +# IgnoreSelected false +# ReportByDevice false +# ReportInodes false +# ValuesAbsolute true +# ValuesPercentage false +#</Plugin> + +#<Plugin disk> +# Disk "/^[hs]d[a-f][0-9]?$/" +# IgnoreSelected false +# UseBSDName false +# UdevNameAttr "DEVNAME" +#</Plugin> + +#<Plugin interface> +# Interface "eth0" +# IgnoreSelected false +# ReportInactive true +# UniqueName false +#</Plugin> + +<Plugin load> + ReportRelative true +</Plugin> + +<Plugin memory> + ValuesAbsolute false + ValuesPercentage true +</Plugin> diff --git a/s6/collectd/collectd-run/producer-for b/s6/collectd/collectd-run/producer-for @@ -0,0 +1 @@ +collectd-log diff --git a/s6/collectd/collectd-run/run b/s6/collectd/collectd-run/run @@ -0,0 +1,5 @@ +#!/usr/bin/env execlineb +# statistics collection daemon +fdmove -c 2 1 + +collectd -f -C data/conf diff --git a/s6/collectd/collectd-run/type b/s6/collectd/collectd-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/djbdns/axfrdns-log/consumer-for b/s6/djbdns/axfrdns-log/consumer-for @@ -0,0 +1 @@ +axfrdns-run diff --git a/s6/djbdns/axfrdns-log/pipeline-name b/s6/djbdns/axfrdns-log/pipeline-name @@ -0,0 +1 @@ +axfrdns diff --git a/s6/djbdns/axfrdns-log/run b/s6/djbdns/axfrdns-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/axfrdns diff --git a/s6/djbdns/axfrdns-log/type b/s6/djbdns/axfrdns-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/djbdns/axfrdns-run/env/ROOT b/s6/djbdns/axfrdns-run/env/ROOT @@ -0,0 +1 @@ +./data/ diff --git a/s6/djbdns/axfrdns-run/producer-for b/s6/djbdns/axfrdns-run/producer-for @@ -0,0 +1 @@ +axfrdns-log diff --git a/s6/djbdns/axfrdns-run/run b/s6/djbdns/axfrdns-run/run @@ -0,0 +1,10 @@ +#!/usr/bin/env execlineb +# djbdns zone transfert dns server +fdmove -c 2 1 + +s6-envuidgid dns +s6-envdir env +s6-softliimt 300000 + +s6-tcpserver -vDRHl0 0.0.0.0 53 +axrfdns diff --git a/s6/djbdns/axfrdns-run/type b/s6/djbdns/axfrdns-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/djbdns/dnscache-log/consumer-for b/s6/djbdns/dnscache-log/consumer-for @@ -0,0 +1 @@ +dnscache-run diff --git a/s6/djbdns/dnscache-log/pipeline-name b/s6/djbdns/dnscache-log/pipeline-name @@ -0,0 +1 @@ +dnscache diff --git a/s6/djbdns/dnscache-log/run b/s6/djbdns/dnscache-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/dnscache diff --git a/s6/djbdns/dnscache-log/type b/s6/djbdns/dnscache-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/djbdns/dnscache-run/data/ip/127.0.0.1 b/s6/djbdns/dnscache-run/data/ip/127.0.0.1 diff --git a/s6/djbdns/dnscache-run/data/servers/@ b/s6/djbdns/dnscache-run/data/servers/@ diff --git a/s6/djbdns/dnscache-run/env/CACHESIZE b/s6/djbdns/dnscache-run/env/CACHESIZE @@ -0,0 +1 @@ +1000000 diff --git a/s6/djbdns/dnscache-run/env/DATALIMIT b/s6/djbdns/dnscache-run/env/DATALIMIT @@ -0,0 +1 @@ +3000000 diff --git a/s6/djbdns/dnscache-run/env/IP b/s6/djbdns/dnscache-run/env/IP @@ -0,0 +1 @@ +127.0.0.1 diff --git a/s6/djbdns/dnscache-run/env/IPSEND b/s6/djbdns/dnscache-run/env/IPSEND @@ -0,0 +1 @@ +0.0.0.0 diff --git a/s6/djbdns/dnscache-run/env/ROOT b/s6/djbdns/dnscache-run/env/ROOT @@ -0,0 +1 @@ +./data/ diff --git a/s6/djbdns/dnscache-run/producer-for b/s6/djbdns/dnscache-run/producer-for @@ -0,0 +1 @@ +dnscache-log diff --git a/s6/djbdns/dnscache-run/run b/s6/djbdns/dnscache-run/run @@ -0,0 +1,12 @@ +#!/usr/bin/env execlineb +# djbdns caching recursive dns server +fdmove -c 2 1 + +importas D DATALIMIT + +s6-envguid dns +s6-envdir env +s6-softlimit -o 250 -d $D + +pipeline { dd 'if=/dev/random' } +dnscache diff --git a/s6/djbdns/dnscache-run/type b/s6/djbdns/dnscache-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/djbdns/tinydns-log/consumer-for b/s6/djbdns/tinydns-log/consumer-for @@ -0,0 +1 @@ +tinydns-run diff --git a/s6/djbdns/tinydns-log/pipeline-name b/s6/djbdns/tinydns-log/pipeline-name @@ -0,0 +1 @@ +tinydns diff --git a/s6/djbdns/tinydns-log/run b/s6/djbdns/tinydns-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/tinydns diff --git a/s6/djbdns/tinydns-log/type b/s6/djbdns/tinydns-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/djbdns/tinydns-run/data/Makefile b/s6/djbdns/tinydns-run/data/Makefile @@ -0,0 +1,2 @@ +data.cdb: data + tinydns-data diff --git a/s6/djbdns/tinydns-run/data/add-alias b/s6/djbdns/tinydns-run/data/add-alias @@ -0,0 +1,2 @@ +#!/bin/sh -e +exec tinydns-edit data data.new add alias "$@" diff --git a/s6/djbdns/tinydns-run/data/add-childns b/s6/djbdns/tinydns-run/data/add-childns @@ -0,0 +1,2 @@ +#!/bin/sh -e +exec tinydns-edit data data.new add childns "$@" diff --git a/s6/djbdns/tinydns-run/data/add-host b/s6/djbdns/tinydns-run/data/add-host @@ -0,0 +1,2 @@ +#!/bin/sh -e +exec tinydns-edit data data.new add host "$@" diff --git a/s6/djbdns/tinydns-run/data/add-mx b/s6/djbdns/tinydns-run/data/add-mx @@ -0,0 +1,2 @@ +#!/bin/sh -e +exec tinydns-edit data data.new add mx "$@" diff --git a/s6/djbdns/tinydns-run/data/add-ns b/s6/djbdns/tinydns-run/data/add-ns @@ -0,0 +1,2 @@ +#!/bin/sh -e +exec tinydns-edit data data.new add ns "$@" diff --git a/s6/djbdns/tinydns-run/env/IP b/s6/djbdns/tinydns-run/env/IP @@ -0,0 +1 @@ +0.0.0.0 diff --git a/s6/djbdns/tinydns-run/env/ROOT b/s6/djbdns/tinydns-run/env/ROOT @@ -0,0 +1 @@ +./data/ diff --git a/s6/djbdns/tinydns-run/producer-for b/s6/djbdns/tinydns-run/producer-for @@ -0,0 +1 @@ +tinydns-log diff --git a/s6/djbdns/tinydns-run/run b/s6/djbdns/tinydns-run/run @@ -0,0 +1,8 @@ +#!/usr/bin/env execlineb +# djbdns authoritative dns server +fdmove -c 2 1 + +s6-envuidgid dns +s6-envdir env + +tinydns diff --git a/s6/djbdns/tinydns-run/type b/s6/djbdns/tinydns-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/djbdns/walldns-log/consumer-for b/s6/djbdns/walldns-log/consumer-for @@ -0,0 +1 @@ +walldns-run diff --git a/s6/djbdns/walldns-log/pipeline-name b/s6/djbdns/walldns-log/pipeline-name @@ -0,0 +1 @@ +walldns diff --git a/s6/djbdns/walldns-log/run b/s6/djbdns/walldns-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/walldns diff --git a/s6/djbdns/walldns-log/type b/s6/djbdns/walldns-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/djbdns/walldns-run/env/IP b/s6/djbdns/walldns-run/env/IP @@ -0,0 +1 @@ +0.0.0.0 diff --git a/s6/djbdns/walldns-run/env/ROOT b/s6/djbdns/walldns-run/env/ROOT @@ -0,0 +1 @@ +./data/ diff --git a/s6/djbdns/walldns-run/producer-for b/s6/djbdns/walldns-run/producer-for @@ -0,0 +1 @@ +walldns-log diff --git a/s6/djbdns/walldns-run/run b/s6/djbdns/walldns-run/run @@ -0,0 +1,7 @@ +#!/usr/bin/env execlineb +# djbdns wall dns server +fdmove -c 2 1 + +s6-envdir env + +walldns diff --git a/s6/djbdns/walldns-run/type b/s6/djbdns/walldns-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/fossil/fossil-log/consumer-for b/s6/fossil/fossil-log/consumer-for @@ -0,0 +1 @@ +fossil-run diff --git a/s6/fossil/fossil-log/pipeline-name b/s6/fossil/fossil-log/pipeline-name @@ -0,0 +1 @@ +fossil diff --git a/s6/fossil/fossil-log/run b/s6/fossil/fossil-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/fossil diff --git a/s6/fossil/fossil-log/type b/s6/fossil/fossil-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/fossil/fossil-run/producer-for b/s6/fossil/fossil-run/producer-for @@ -0,0 +1 @@ +fossil-log diff --git a/s6/fossil/fossil-run/run b/s6/fossil/fossil-run/run @@ -0,0 +1,10 @@ +#!/usr/bin/env execlineb +# Write Once Read Many (WORM) storage system from Plan 9 (p9p) +fdmove -c 2 1 + +foreground { mkdir -p /home/venti } + +fossil -s + -c conf + -a tcp!*!17034 + -h tcp!*!8080 diff --git a/s6/fossil/fossil-run/type b/s6/fossil/fossil-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/ftpd-run/env/IP b/s6/ftpd-run/env/IP @@ -0,0 +1 @@ +0.0.0.0 diff --git a/s6/ftpd-run/run b/s6/ftpd-run/run @@ -0,0 +1,7 @@ +#!/local/bin/execlineb -P +fdmove -c 2 1 + +s6-envdir env importas IP IP +s6-envuidgid www +s6-tcpserver -vD -b50 -c100 $IP 21 +ftpd /var/www/ diff --git a/s6/geomyidae/geomyidae-log/consumer-for b/s6/geomyidae/geomyidae-log/consumer-for @@ -0,0 +1 @@ +geomyidae-run diff --git a/s6/geomyidae/geomyidae-log/pipeline-name b/s6/geomyidae/geomyidae-log/pipeline-name @@ -0,0 +1 @@ +geomyidae diff --git a/s6/geomyidae/geomyidae-log/run b/s6/geomyidae/geomyidae-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/geomyidae diff --git a/s6/geomyidae/geomyidae-log/type b/s6/geomyidae/geomyidae-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/geomyidae/geomyidae-run/env/BASE b/s6/geomyidae/geomyidae-run/env/BASE @@ -0,0 +1 @@ +/data/srv/josuah.net/ diff --git a/s6/geomyidae/geomyidae-run/env/HOST b/s6/geomyidae/geomyidae-run/env/HOST @@ -0,0 +1 @@ +josuah.net diff --git a/s6/geomyidae/geomyidae-run/env/PORT b/s6/geomyidae/geomyidae-run/env/PORT @@ -0,0 +1 @@ +70 diff --git a/s6/geomyidae/geomyidae-run/producer-for b/s6/geomyidae/geomyidae-run/producer-for @@ -0,0 +1 @@ +geomyidae-log diff --git a/s6/geomyidae/geomyidae-run/run b/s6/geomyidae/geomyidae-run/run @@ -0,0 +1,14 @@ +#!/usr/bin/env execlineb +# simple gopher server with index.gph syntax and CGI support +fdmove -c 2 1 + +s6-envdir ./env/ + +importas HOST HOST +importas PORT PORT +importas BASE BASE + +geomyidae -d + -b $BASE + -h $HOST + -p $PORT diff --git a/s6/geomyidae/geomyidae-run/type b/s6/geomyidae/geomyidae-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/git/git-daemon-log/consumer-for b/s6/git/git-daemon-log/consumer-for @@ -0,0 +1 @@ +git-daemon-run diff --git a/s6/git/git-daemon-log/pipeline-name b/s6/git/git-daemon-log/pipeline-name @@ -0,0 +1 @@ +git-daemon diff --git a/s6/git/git-daemon-log/run b/s6/git/git-daemon-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/git-daemon diff --git a/s6/git/git-daemon-log/type b/s6/git/git-daemon-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/git/git-daemon-run/producer-for b/s6/git/git-daemon-run/producer-for @@ -0,0 +1 @@ +git-daemon-log diff --git a/s6/git/git-daemon-run/run b/s6/git/git-daemon-run/run @@ -0,0 +1,8 @@ +#!/usr/bin/env execlineb +fdmove -c 2 1 + +s6-tcpserver 0.0.0.0 9418 +git daemon + --inetd + --export-all + --base-path=/var/git diff --git a/s6/git/git-daemon-run/type b/s6/git/git-daemon-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/ii/ii-tcp-log/consumer-for b/s6/ii/ii-tcp-log/consumer-for @@ -0,0 +1 @@ +ii-tcp-run diff --git a/s6/ii/ii-tcp-log/pipeline-name b/s6/ii/ii-tcp-log/pipeline-name @@ -0,0 +1 @@ +ii-tcp diff --git a/s6/ii/ii-tcp-log/run b/s6/ii/ii-tcp-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/ii-tcp diff --git a/s6/ii/ii-tcp-log/type b/s6/ii/ii-tcp-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/ii/ii-tcp-run/env/HOST b/s6/ii/ii-tcp-run/env/HOST @@ -0,0 +1 @@ +irc.freenode.net diff --git a/s6/ii/ii-tcp-run/env/NAME b/s6/ii/ii-tcp-run/env/NAME diff --git a/s6/ii/ii-tcp-run/env/NICK b/s6/ii/ii-tcp-run/env/NICK @@ -0,0 +1 @@ +josuah diff --git a/s6/ii/ii-tcp-run/env/PASS b/s6/ii/ii-tcp-run/env/PASS diff --git a/s6/ii/ii-tcp-run/env/PORT b/s6/ii/ii-tcp-run/env/PORT @@ -0,0 +1 @@ +6697 diff --git a/s6/ii/ii-tcp-run/env/USER b/s6/ii/ii-tcp-run/env/USER @@ -0,0 +1 @@ +josuah diff --git a/s6/ii/ii-tcp-run/finish b/s6/ii/ii-tcp-run/finish @@ -0,0 +1,2 @@ +#!/usr/local/bin/execlineb -P +sleep 30 diff --git a/s6/ii/ii-tcp-run/producer-for b/s6/ii/ii-tcp-run/producer-for @@ -0,0 +1 @@ +ii-tcp-log diff --git a/s6/ii/ii-tcp-run/run b/s6/ii/ii-tcp-run/run @@ -0,0 +1,24 @@ +#!/usr/bin/env execlineb +# connect to an irc server through ii through tlsserver +fdmove -c 2 1 +s6-envdir env +multisubstitute { + importas HOST HOST + importas PORT PORT + importas USER USER + importas NICK NICK + importas NAME NAME +} + +ifelse -n { test -f ${CAFILE} } { + redirfd -r 0 /dev/null + redirfd -w 1 ${CAFILE} + openssl s_client -showcerts -connect ${HOST}:6697 +} + +s6-setuidgid ${USER} +s6-tcpclient ${HOST} ${PORT} +ii -s ${HOST} + -n ${NICK} + -f ${NAME} + -k PASS diff --git a/s6/ii/ii-tcp-run/type b/s6/ii/ii-tcp-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/ii/ii-tls-log/consumer-for b/s6/ii/ii-tls-log/consumer-for @@ -0,0 +1 @@ +ii-tls-run diff --git a/s6/ii/ii-tls-log/pipeline-name b/s6/ii/ii-tls-log/pipeline-name @@ -0,0 +1 @@ +ii-tls diff --git a/s6/ii/ii-tls-log/run b/s6/ii/ii-tls-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/ii-tls diff --git a/s6/ii/ii-tls-log/type b/s6/ii/ii-tls-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/ii/ii-tls-run/data/.empty b/s6/ii/ii-tls-run/data/.empty diff --git a/s6/ii/ii-tls-run/env/CAFILE b/s6/ii/ii-tls-run/env/CAFILE @@ -0,0 +1 @@ +./data/cert.pem diff --git a/s6/ii/ii-tls-run/env/HOST b/s6/ii/ii-tls-run/env/HOST @@ -0,0 +1 @@ +173.230.128.213 diff --git a/s6/ii/ii-tls-run/env/NAME b/s6/ii/ii-tls-run/env/NAME diff --git a/s6/ii/ii-tls-run/env/NICK b/s6/ii/ii-tls-run/env/NICK @@ -0,0 +1 @@ +josuah diff --git a/s6/ii/ii-tls-run/env/PASS b/s6/ii/ii-tls-run/env/PASS diff --git a/s6/ii/ii-tls-run/env/PORT b/s6/ii/ii-tls-run/env/PORT @@ -0,0 +1 @@ +6697 diff --git a/s6/ii/ii-tls-run/env/USER b/s6/ii/ii-tls-run/env/USER @@ -0,0 +1 @@ +josuah diff --git a/s6/ii/ii-tls-run/finish b/s6/ii/ii-tls-run/finish @@ -0,0 +1,2 @@ +#!/usr/local/bin/execlineb -P +sleep 30 diff --git a/s6/ii/ii-tls-run/producer-for b/s6/ii/ii-tls-run/producer-for @@ -0,0 +1 @@ +ii-tls-log diff --git a/s6/ii/ii-tls-run/run b/s6/ii/ii-tls-run/run @@ -0,0 +1,22 @@ +#!/usr/bin/env execlineb +# connect to an irc server through ii through tlsserver +fdmove -c 2 1 +s6-envdir env +multisubstitute { + importas HOST HOST + importas PORT PORT + importas USER USER + importas NICK NICK + importas NAME NAME + importas CAFILE CAFILE +} + +ifelse -n { test -f ${CAFILE} } { + redirfd -r 0 /dev/null + redirfd -w 1 ${CAFILE} + openssl s_client -showcerts -connect ${HOST}:6697 +} + +s6-setuidgid ${USER} +s6-tlsclient ${HOST} ${PORT} +ii -s ${HOST} -n ${NICK} -f ${NAME} -k PASS diff --git a/s6/ii/ii-tls-run/type b/s6/ii/ii-tls-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/ii/ii/contents b/s6/ii/ii/contents @@ -0,0 +1,2 @@ +ii-tcp +ii-tls diff --git a/s6/ii/ii/type b/s6/ii/ii/type @@ -0,0 +1 @@ +bundle diff --git a/s6/mpop/mpop-log/consumer-for b/s6/mpop/mpop-log/consumer-for @@ -0,0 +1 @@ +mpop-run diff --git a/s6/mpop/mpop-log/pipeline-name b/s6/mpop/mpop-log/pipeline-name @@ -0,0 +1 @@ +mpop diff --git a/s6/mpop/mpop-log/run b/s6/mpop/mpop-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/mpop diff --git a/s6/mpop/mpop-log/type b/s6/mpop/mpop-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/mpop/mpop-run/data/mpoprc b/s6/mpop/mpop-run/data/mpoprc @@ -0,0 +1,15 @@ +defaults +tls on +tls_certcheck off +tls_starttls off +uidls_file ~/mail/%U + +account mail@josuah.net +host mail.gandi.net +user mail@josuah.net +auth user +passwordeval "enchive -a$((3600*12)) extract /mnt/key/vault/mpop /dev/stdout" +delivery maildir ~/mail/INBOX +keep on + +account default : mail@josuah.net diff --git a/s6/mpop/mpop-run/env/USER b/s6/mpop/mpop-run/env/USER @@ -0,0 +1 @@ +josuah diff --git a/s6/mpop/mpop-run/producer-for b/s6/mpop/mpop-run/producer-for @@ -0,0 +1 @@ +mpop-log diff --git a/s6/mpop/mpop-run/run b/s6/mpop/mpop-run/run @@ -0,0 +1,14 @@ +#!/usr/bin/env execlineb +# update pop mail using mpop +fdmove -c 2 1 +s6-envdir env +importas USER USER + +redirfd -r 0 ./data/mpoprc # it might not be readable as ${USER} +s6-setuidgid $USER + +backtick -n HOME { homeof $USER } +importas HOME HOME +cd $HOME + +snooze -M /5 -H * mpop -C /dev/stdin diff --git a/s6/mpop/mpop-run/type b/s6/mpop/mpop-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/ngircd/ngircd-log/consumer-for b/s6/ngircd/ngircd-log/consumer-for @@ -0,0 +1 @@ +ngircd-run diff --git a/s6/ngircd/ngircd-log/pipeline-name b/s6/ngircd/ngircd-log/pipeline-name @@ -0,0 +1 @@ +ngircd diff --git a/s6/ngircd/ngircd-log/run b/s6/ngircd/ngircd-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/ngircd diff --git a/s6/ngircd/ngircd-log/type b/s6/ngircd/ngircd-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/ngircd/ngircd-run/data/conf b/s6/ngircd/ngircd-run/data/conf @@ -0,0 +1,45 @@ +[Global] + Name = XXX + AdminInfo1 = josuah + AdminInfo2 = XXX + AdminEMail = mail@josuah.net + Info = XXX + MotdFile = motd + Network = XXX + Ports = 6697 + +[Limits] + MaxConnections = 128 + MaxConnectionsIP = 20 + MaxJoins = 50 + MaxNickLength = 10 + PingTimeout = 120 + PongTimeout = 120 + +[Options] + AllowedChannelTypes = #&+ + AllowRemoteOper = yes + CloakHost = %x%x + CloakHostSalt = XXX + DefaultUserModes = iC + DNS = no + Ident = no + MorePrivacy = yes + OperCanUseMode = yes + OperChanPAutoOp = yes + +[SSL] + Ports = 6697 + CertFile = pem + DHFile = dhp + KeyFile = key + KeyFilePassword = XXX + CipherList = AES+RSA + +[Operator] + Name = josuah + Password = XXX + Mask = josuah!XXX + +[Server] + XXX diff --git a/s6/ngircd/ngircd-run/data/motd b/s6/ngircd/ngircd-run/data/motd @@ -0,0 +1,37 @@ +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ +@ This server is not ready yet, visit https://cyberia.uptime.party/ @ +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ + + __,--- + ,-' / + / , , /_ _ __ . ___ + / / / / \ ,'_| /' / ,' / + \__\ /_ /__,'_\__ / __ /__\__/___ __ _ + \/ + ____/ + +Listening on ports: 6697 (TLS) +irc.cyberia.systems + +Welcome to Cyberia +We're stoked you are here +Love Lain or be lame + +Rules: + - No spamming or flooding + - No clones or malicious bots + - No takeovers + - No distribution of child pornography + - Do not harass other users + - Clients must respond to VERSION requests + + We reserve the right to remove your access to this server and network + at any time at our opers discretion. + +First steps: + - Find an existing IRC channel on this network: /list + - Join an IRC channel or create your own: /join <#channel> + +Getting help: + - For helpdesk on using IRC: /join #help + - For network issues, status and server operator queries: /join #noc diff --git a/s6/ngircd/ngircd-run/data/tls b/s6/ngircd/ngircd-run/data/tls @@ -0,0 +1,8 @@ +#!/bin/sh -e + +openssl req -x509 -newkey rsa:4096 -days 365 -keyout key -out pem +chmod 400 key +chmod 444 pem + +openssl dhparam -out dhp 4096 +chmod 444 dhp diff --git a/s6/ngircd/ngircd-run/producer-for b/s6/ngircd/ngircd-run/producer-for @@ -0,0 +1 @@ +ngircd-log diff --git a/s6/ngircd/ngircd-run/run b/s6/ngircd/ngircd-run/run @@ -0,0 +1,5 @@ +#!/usr/bin/env execlineb +# Internet Relay Chat (IRC) daemon with TLS support (see ./tls) +fdmove -c 2 1 + +ngircd -n -f ./data/conf diff --git a/s6/ngircd/ngircd-run/type b/s6/ngircd/ngircd-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/ntpclient/ntpclient-log/consumer-for b/s6/ntpclient/ntpclient-log/consumer-for @@ -0,0 +1 @@ +ntpclient-run diff --git a/s6/ntpclient/ntpclient-log/pipeline-name b/s6/ntpclient/ntpclient-log/pipeline-name @@ -0,0 +1 @@ +ntpclient diff --git a/s6/ntpclient/ntpclient-log/run b/s6/ntpclient/ntpclient-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/ntpclient diff --git a/s6/ntpclient/ntpclient-log/type b/s6/ntpclient/ntpclient-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/ntpclient/ntpclient-run/env/HOST b/s6/ntpclient/ntpclient-run/env/HOST @@ -0,0 +1 @@ +pool.ntp.org diff --git a/s6/ntpclient/ntpclient-run/producer-for b/s6/ntpclient/ntpclient-run/producer-for @@ -0,0 +1 @@ +ntpclient-log diff --git a/s6/ntpclient/ntpclient-run/run b/s6/ntpclient/ntpclient-run/run @@ -0,0 +1,6 @@ +#!/usr/bin/env execlineb +fdmove -c 2 1 +s6-envdir ./env/ +importas HOST HOST + +ntpclient -h $HOST diff --git a/s6/ntpclient/ntpclient-run/type b/s6/ntpclient/ntpclient-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/ok-all/contents b/s6/ok-all/contents @@ -0,0 +1,2 @@ +s6rc-fdholder +s6rc-oneshot-runner diff --git a/s6/ok-all/type b/s6/ok-all/type @@ -0,0 +1 @@ +bundle diff --git a/s6/opentracker/opentracker-log/consumer-for b/s6/opentracker/opentracker-log/consumer-for @@ -0,0 +1 @@ +opentracker-run diff --git a/s6/opentracker/opentracker-log/pipeline-name b/s6/opentracker/opentracker-log/pipeline-name @@ -0,0 +1 @@ +opentracker diff --git a/s6/opentracker/opentracker-log/run b/s6/opentracker/opentracker-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/opentracker diff --git a/s6/opentracker/opentracker-log/type b/s6/opentracker/opentracker-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/opentracker/opentracker-run/producer-for b/s6/opentracker/opentracker-run/producer-for @@ -0,0 +1 @@ +opentracker-log diff --git a/s6/opentracker/opentracker-run/run b/s6/opentracker/opentracker-run/run @@ -0,0 +1,5 @@ +#!/usr/bin/env execlineb +# torrent tracker server +fdmove -c 2 1 + +opentracker -d /home/tracker diff --git a/s6/opentracker/opentracker-run/type b/s6/opentracker/opentracker-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/publicfile/ftpd-log/consumer-for b/s6/publicfile/ftpd-log/consumer-for @@ -0,0 +1 @@ +ftpd-run diff --git a/s6/publicfile/ftpd-log/pipeline-name b/s6/publicfile/ftpd-log/pipeline-name @@ -0,0 +1 @@ +ftpd diff --git a/s6/publicfile/ftpd-log/run b/s6/publicfile/ftpd-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/ftpd diff --git a/s6/publicfile/ftpd-log/type b/s6/publicfile/ftpd-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/publicfile/ftpd-run/producer-for b/s6/publicfile/ftpd-run/producer-for @@ -0,0 +1 @@ +ftpd-log diff --git a/s6/publicfile/ftpd-run/run b/s6/publicfile/ftpd-run/run @@ -0,0 +1,7 @@ +#!/usr/bin/env execlineb +fdmove -c 2 1 + +s6-envuidgid www +s6-tcpserver -vD -b50 -c100 0.0.0.0 21 + +ftpd /var/www/ diff --git a/s6/publicfile/ftpd-run/type b/s6/publicfile/ftpd-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/publicfile/httpd-log/consumer-for b/s6/publicfile/httpd-log/consumer-for @@ -0,0 +1 @@ +httpd-run diff --git a/s6/publicfile/httpd-log/pipeline-name b/s6/publicfile/httpd-log/pipeline-name @@ -0,0 +1 @@ +httpd diff --git a/s6/publicfile/httpd-log/run b/s6/publicfile/httpd-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/httpd diff --git a/s6/publicfile/httpd-log/type b/s6/publicfile/httpd-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/publicfile/httpd-run/producer-for b/s6/publicfile/httpd-run/producer-for @@ -0,0 +1 @@ +httpd-log diff --git a/s6/publicfile/httpd-run/run b/s6/publicfile/httpd-run/run @@ -0,0 +1,7 @@ +#!/usr/bin/env execlineb +fdmove -c 2 1 + +s6-envuidgid www +s6-tcpserver -vD -b50 -c100 0.0.0.0 80 + +httpd /var/www/ diff --git a/s6/publicfile/httpd-run/type b/s6/publicfile/httpd-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/qemu/qemu-tap-log/consumer-for b/s6/qemu/qemu-tap-log/consumer-for @@ -0,0 +1 @@ +qemu-tap-run diff --git a/s6/qemu/qemu-tap-log/pipeline-name b/s6/qemu/qemu-tap-log/pipeline-name @@ -0,0 +1 @@ +qemu-tap diff --git a/s6/qemu/qemu-tap-log/run b/s6/qemu/qemu-tap-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/qemu-tap diff --git a/s6/qemu/qemu-tap-log/type b/s6/qemu/qemu-tap-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/qemu/qemu-tap-run/producer-for b/s6/qemu/qemu-tap-run/producer-for @@ -0,0 +1 @@ +qemu-tap-log diff --git a/s6/qemu/qemu-tap-run/run b/s6/qemu/qemu-tap-run/run @@ -0,0 +1,23 @@ +#!/usr/bin/env execlineb +# qemu without networking services, using a tap ethernet device + +# The virtual machine main interface (nic,vlan=0) is communicating +# through a tap device (tap,vlan=0) in the host that is not connected to +# anything yet. A bridge needs to be setup between this interface and +# anything it needs to connect to. + +fdmove 2 1 + +backtick name { getcwd PWD basename $PWD } +importas name name + +qemu-system-x86_64 + -name $name + -m 333M + -netdev tap,id=nd0,ifname=tap0,script=no,downscript=no + -device virtio-net,netdev=nd0,mac=52:54:00:00:00:00 + /var/iso/$name.iso + +# -display none +# -display curses +# -display vnc=0.0.0.0:0 diff --git a/s6/qemu/qemu-tap-run/type b/s6/qemu/qemu-tap-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/qemu/qemu-user-log/consumer-for b/s6/qemu/qemu-user-log/consumer-for @@ -0,0 +1 @@ +qemu-user-run diff --git a/s6/qemu/qemu-user-log/pipeline-name b/s6/qemu/qemu-user-log/pipeline-name @@ -0,0 +1 @@ +qemu-user diff --git a/s6/qemu/qemu-user-log/run b/s6/qemu/qemu-user-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/qemu-user diff --git a/s6/qemu/qemu-user-log/type b/s6/qemu/qemu-user-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/qemu/qemu-user-run/env/NAME b/s6/qemu/qemu-user-run/env/NAME diff --git a/s6/qemu/qemu-user-run/producer-for b/s6/qemu/qemu-user-run/producer-for @@ -0,0 +1 @@ +qemu-user-log diff --git a/s6/qemu/qemu-user-run/run b/s6/qemu/qemu-user-run/run @@ -0,0 +1,21 @@ +#!/usr/bin/env execlineb +# qemu with facilitated networking services + +# The virtual machine communicates with the hypervisor, which setups +# a lot of servers (dns, tftp, dhcp...) for ease of use. + +fdmove -c 2 1 + +s6-envdir env +importas NAME NAME + +qemu-system-x86_64 + -m 333M + -name $NAME + -netdev user,id=nd0,hostfwd=tcp::10000-:22 + -device e1000,netdev=nd0 + -display none + /var/iso/$NAME.iso + +# -display curses +# -display vnc=0.0.0.0:0 diff --git a/s6/qemu/qemu-user-run/type b/s6/qemu/qemu-user-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/qmail/qmail-pop3d-log/consumer-for b/s6/qmail/qmail-pop3d-log/consumer-for @@ -0,0 +1 @@ +qmail-pop3d-run diff --git a/s6/qmail/qmail-pop3d-log/pipeline-name b/s6/qmail/qmail-pop3d-log/pipeline-name @@ -0,0 +1 @@ +qmail-pop3d diff --git a/s6/qmail/qmail-pop3d-log/run b/s6/qmail/qmail-pop3d-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/qmail-pop3d diff --git a/s6/qmail/qmail-pop3d-log/type b/s6/qmail/qmail-pop3d-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/qmail/qmail-pop3d-run/env/CERTFILE b/s6/qmail/qmail-pop3d-run/env/CERTFILE @@ -0,0 +1 @@ +/var/s6/snooze-tls-cert/data/pem diff --git a/s6/qmail/qmail-pop3d-run/env/HOST b/s6/qmail/qmail-pop3d-run/env/HOST @@ -0,0 +1 @@ +josuah.net diff --git a/s6/qmail/qmail-pop3d-run/env/KEYFILE b/s6/qmail/qmail-pop3d-run/env/KEYFILE @@ -0,0 +1 @@ +/var/s6/snooze-tls-cert/data/key diff --git a/s6/qmail/qmail-pop3d-run/env/MAILDIR b/s6/qmail/qmail-pop3d-run/env/MAILDIR @@ -0,0 +1 @@ +./mail/INBOX/ diff --git a/s6/qmail/qmail-pop3d-run/producer-for b/s6/qmail/qmail-pop3d-run/producer-for @@ -0,0 +1 @@ +qmail-pop3d-log diff --git a/s6/qmail/qmail-pop3d-run/run b/s6/qmail/qmail-pop3d-run/run @@ -0,0 +1,11 @@ +#!/usr/bin/env execlineb +# qmail pop3 daemon +fdmove -c 2 1 +s6-envdir ./env/ +multisubstitute { + importas HOST HOST + importas MAILDIR MAILDIR +} + +s6-tlsserver 0.0.0.0 995 +qmail-popup $HOST checkpassword qmail-pop3d $MAILDIR diff --git a/s6/qmail/qmail-pop3d-run/type b/s6/qmail/qmail-pop3d-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/qmail/qmail-send-log/consumer-for b/s6/qmail/qmail-send-log/consumer-for @@ -0,0 +1 @@ +qmail-send-run diff --git a/s6/qmail/qmail-send-log/pipeline-name b/s6/qmail/qmail-send-log/pipeline-name @@ -0,0 +1 @@ +qmail-send diff --git a/s6/qmail/qmail-send-log/run b/s6/qmail/qmail-send-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/qmail-send diff --git a/s6/qmail/qmail-send-log/type b/s6/qmail/qmail-send-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/qmail/qmail-send-run/env/MAILDIR b/s6/qmail/qmail-send-run/env/MAILDIR @@ -0,0 +1 @@ +./mail/INBOX/ diff --git a/s6/qmail/qmail-send-run/producer-for b/s6/qmail/qmail-send-run/producer-for @@ -0,0 +1 @@ +qmail-send-log diff --git a/s6/qmail/qmail-send-run/run b/s6/qmail/qmail-send-run/run @@ -0,0 +1,7 @@ +#!/usr/bin/env execlineb +# start watching qmail dir for queued messages +fdmove -c 2 1 +s6-envdir ./env/ +importas MAILDIR MAILDIR + +qmail-start $MAILDIR diff --git a/s6/qmail/qmail-send-run/type b/s6/qmail/qmail-send-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/qmail/qmail-smtpd-log/consumer-for b/s6/qmail/qmail-smtpd-log/consumer-for @@ -0,0 +1 @@ +qmail-smtpd-run diff --git a/s6/qmail/qmail-smtpd-log/pipeline-name b/s6/qmail/qmail-smtpd-log/pipeline-name @@ -0,0 +1 @@ +qmail-smtpd diff --git a/s6/qmail/qmail-smtpd-log/run b/s6/qmail/qmail-smtpd-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/qmail-smtpd diff --git a/s6/qmail/qmail-smtpd-log/type b/s6/qmail/qmail-smtpd-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/qmail/qmail-smtpd-run/producer-for b/s6/qmail/qmail-smtpd-run/producer-for @@ -0,0 +1 @@ +qmail-smtpd-log diff --git a/s6/qmail/qmail-smtpd-run/run b/s6/qmail/qmail-smtpd-run/run @@ -0,0 +1,19 @@ +#!/usr/bin/env execlineb +# qmail smtp daemon +fdmove -c 2 1 + +foreground { if { test ! -d data/key } + if { mkdir -p data/key } + cd data/key + if { openssl req -nodes -new -x509 -keyout key -out pem } + if { openssl dhparam -out dhp 4096 } + if { chmod -R 500 data/key } + if { chmod 400 data/key/key data/key/pem data/key/dhp } +} + +s6-envdir ./env/ + +s6-envuidgid qmaild + +s6-tcpserver -U 0.0.0.0 25 +qmail-smtpd diff --git a/s6/qmail/qmail-smtpd-run/tls b/s6/qmail/qmail-smtpd-run/tls @@ -0,0 +1,8 @@ +#!/bin/sh -e + +openssl req -x509 -newkey rsa:4096 -days 365 -keyout key -out pem +chmod 400 key +chmod 444 pem + +openssl dhparam -out dhp 4096 +chmod 444 dhp diff --git a/s6/qmail/qmail-smtpd-run/type b/s6/qmail/qmail-smtpd-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/qmail/qmail/contents b/s6/qmail/qmail/contents @@ -0,0 +1,2 @@ +qmail-smtpd +qmail-send diff --git a/s6/qmail/qmail/type b/s6/qmail/qmail/type @@ -0,0 +1 @@ +bundle diff --git a/s6/quark-tor/quark-tor-log/consumer-for b/s6/quark-tor/quark-tor-log/consumer-for @@ -0,0 +1 @@ +quark-tor-run diff --git a/s6/quark-tor/quark-tor-log/pipeline-name b/s6/quark-tor/quark-tor-log/pipeline-name @@ -0,0 +1 @@ +quark-tor diff --git a/s6/quark-tor/quark-tor-log/run b/s6/quark-tor/quark-tor-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/quark-tor diff --git a/s6/quark-tor/quark-tor-log/type b/s6/quark-tor/quark-tor-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/quark-tor/quark-tor-run/producer-for b/s6/quark-tor/quark-tor-run/producer-for @@ -0,0 +1 @@ +quark-tor-log diff --git a/s6/quark-tor/quark-tor-run/run b/s6/quark-tor/quark-tor-run/run @@ -0,0 +1,16 @@ +#!/usr/bin/env execlineb +# static http server +fdmove -c 2 1 + +backtick tor { homeof tor } +importas tor tor + +backtick host { cat $tor/http/hostname } +importas host host + +quark -l + -u srv + -h 0.0.0.0 + -p 80 + -d /home/srv + -v $host" "$host"$ cyberia.systems" diff --git a/s6/quark-tor/quark-tor-run/type b/s6/quark-tor/quark-tor-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/quark/quark-log/consumer-for b/s6/quark/quark-log/consumer-for @@ -0,0 +1 @@ +quark-run diff --git a/s6/quark/quark-log/pipeline-name b/s6/quark/quark-log/pipeline-name @@ -0,0 +1 @@ +quark diff --git a/s6/quark/quark-log/run b/s6/quark/quark-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/quark diff --git a/s6/quark/quark-log/type b/s6/quark/quark-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/quark/quark-run/producer-for b/s6/quark/quark-run/producer-for @@ -0,0 +1 @@ +quark-log diff --git a/s6/quark/quark-run/run b/s6/quark/quark-run/run @@ -0,0 +1,13 @@ +#!/usr/bin/env execlineb +# static http server +fdmove -c 2 1 + +quark -l + -u srv + -h 0.0.0.0 + -p 80 + -d /var/www + -v "josuah.net josuah.net$ josuah.net" + -v "josuah.cyb josuah.cyb$ josuah.net" + -v "cyberia.systems cyberia.systems$ cyberia.systems" + -v "www.atelier-fu.fr atelier-fu.fr$ atelier-fu.fr" diff --git a/s6/quark/quark-run/type b/s6/quark/quark-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/ratox/ratox-log/consumer-for b/s6/ratox/ratox-log/consumer-for @@ -0,0 +1 @@ +ratox-run diff --git a/s6/ratox/ratox-log/pipeline-name b/s6/ratox/ratox-log/pipeline-name @@ -0,0 +1 @@ +ratox diff --git a/s6/ratox/ratox-log/run b/s6/ratox/ratox-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/ratox diff --git a/s6/ratox/ratox-log/type b/s6/ratox/ratox-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/ratox/ratox-run/producer-for b/s6/ratox/ratox-run/producer-for @@ -0,0 +1 @@ +ratox-log diff --git a/s6/ratox/ratox-run/run b/s6/ratox/ratox-run/run @@ -0,0 +1,10 @@ +#!/usr/bin/env execlineb +# tox protocol client communicating through the filesystem +fdmove -c 2 1 + +define dir /home/tox + +mkdir -p $dir +cd $dir + +exec ratox diff --git a/s6/ratox/ratox-run/type b/s6/ratox/ratox-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/s6-logger/run b/s6/s6-logger/run @@ -0,0 +1,7 @@ +#!/usr/bin/env execlineb + +redirfd -w 2 /dev/console +redirfd -w 1 /dev/null +redirfd -rnb 0 fifo +s6-applyuidgid -u 0 -g 0 +s6-log -bp -- t /var/log/s6 diff --git a/s6/snooze-acme-client/snooze-acme-client-log/consumer-for b/s6/snooze-acme-client/snooze-acme-client-log/consumer-for @@ -0,0 +1 @@ +snooze-acme-client-run diff --git a/s6/snooze-acme-client/snooze-acme-client-log/pipeline-name b/s6/snooze-acme-client/snooze-acme-client-log/pipeline-name @@ -0,0 +1 @@ +snooze-acme-client diff --git a/s6/snooze-acme-client/snooze-acme-client-log/run b/s6/snooze-acme-client/snooze-acme-client-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/snooze-acme-client diff --git a/s6/snooze-acme-client/snooze-acme-client-log/type b/s6/snooze-acme-client/snooze-acme-client-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/snooze-acme-client/snooze-acme-client-run/data/conf b/s6/snooze-acme-client/snooze-acme-client-run/data/conf @@ -0,0 +1,17 @@ +authority letsencrypt { + api url "https://acme-v01.api.letsencrypt.org/directory" + account key "/etc/acme/letsencrypt-privkey.pem" +} + +authority letsencrypt-staging { + api url "https://acme-staging.api.letsencrypt.org/directory" + account key "/etc/acme/letsencrypt-staging-privkey.pem" +} + +domain josuah.net { + alternative names { mail.josuah.net } + domain key "data/ssl/josuah.net.key" + domain certificate "data/ssl/josuah.net.crt" + domain full chain certificate "data/ssl/josuah.net.pem" + sign with letsencrypt +} diff --git a/s6/snooze-acme-client/snooze-acme-client-run/producer-for b/s6/snooze-acme-client/snooze-acme-client-run/producer-for @@ -0,0 +1 @@ +snooze-acme-client-log diff --git a/s6/snooze-acme-client/snooze-acme-client-run/run b/s6/snooze-acme-client/snooze-acme-client-run/run @@ -0,0 +1,6 @@ +#!/usr/bin/env execlineb +fdmove -c 2 1 + +if { mkdir -p /etc/acme /etc/ssl/acme/private /var/www/acme } +snooze -d1 +acme-client -vnN -f data/conf josuah.net diff --git a/s6/snooze-acme-client/snooze-acme-client-run/type b/s6/snooze-acme-client/snooze-acme-client-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/snooze-pax/job b/s6/snooze-pax/job @@ -0,0 +1,8 @@ +#!/bin/sh -e + +cd "$PAXPATH/def" +for pack in * +do + output=$(pax add "$pack") && status=ok || status=fail + printf '%-60s %s\n' "$output" "$status" +done diff --git a/s6/snooze-pax/run b/s6/snooze-pax/run @@ -0,0 +1,3 @@ +#!/usr/bin/env execlineb + +snooze ./job diff --git a/s6/snooze-pax/type b/s6/snooze-pax/type @@ -0,0 +1 @@ +longrun diff --git a/s6/snooze-tls/snooze-tls-cert-log/consumer-for b/s6/snooze-tls/snooze-tls-cert-log/consumer-for @@ -0,0 +1 @@ +snooze-tls-cert-run diff --git a/s6/snooze-tls/snooze-tls-cert-log/pipeline-name b/s6/snooze-tls/snooze-tls-cert-log/pipeline-name @@ -0,0 +1 @@ +snooze-tls-cert diff --git a/s6/snooze-tls/snooze-tls-cert-log/run b/s6/snooze-tls/snooze-tls-cert-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/snooze-tls-cert diff --git a/s6/snooze-tls/snooze-tls-cert-log/type b/s6/snooze-tls/snooze-tls-cert-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/snooze-tls/snooze-tls-cert-run/data/... b/s6/snooze-tls/snooze-tls-cert-run/data/... diff --git a/s6/snooze-tls/snooze-tls-cert-run/env/HOST b/s6/snooze-tls/snooze-tls-cert-run/env/HOST @@ -0,0 +1 @@ +josuah.net diff --git a/s6/snooze-tls/snooze-tls-cert-run/producer-for b/s6/snooze-tls/snooze-tls-cert-run/producer-for @@ -0,0 +1 @@ +snooze-tls-cert-log diff --git a/s6/snooze-tls/snooze-tls-cert-run/run b/s6/snooze-tls/snooze-tls-cert-run/run @@ -0,0 +1,16 @@ +#!/usr/bin/env execlineb +fdmove -c 2 1 +s6-envdir ./env/ +importas HOST HOST + +snooze -d 1 +if { chmod 400 data } +openssl req + -new + -newkey rsa + -days 365 + -nodes + -x509 + -subj /CN=josuah.net + -keyout data/key + -out data/pem diff --git a/s6/snooze-tls/snooze-tls-cert-run/type b/s6/snooze-tls/snooze-tls-cert-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/snooze-tls/snooze-tls-dhparam-log/consumer-for b/s6/snooze-tls/snooze-tls-dhparam-log/consumer-for @@ -0,0 +1 @@ +snooze-tls-dhparam-run diff --git a/s6/snooze-tls/snooze-tls-dhparam-log/pipeline-name b/s6/snooze-tls/snooze-tls-dhparam-log/pipeline-name @@ -0,0 +1 @@ +snooze-tls-dhparam diff --git a/s6/snooze-tls/snooze-tls-dhparam-log/run b/s6/snooze-tls/snooze-tls-dhparam-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/snooze-tls-dhparam diff --git a/s6/snooze-tls/snooze-tls-dhparam-log/type b/s6/snooze-tls/snooze-tls-dhparam-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/snooze-tls/snooze-tls-dhparam-run/producer-for b/s6/snooze-tls/snooze-tls-dhparam-run/producer-for @@ -0,0 +1 @@ +snooze-tls-dhparam-log diff --git a/s6/snooze-tls/snooze-tls-dhparam-run/run b/s6/snooze-tls/snooze-tls-dhparam-run/run @@ -0,0 +1,5 @@ +#!/usr/bin/env execlineb +movefd -c 2 1 + +snooze -m /3 -d 1 +openssl dhparam -out ./data/dhp 4096 diff --git a/s6/snooze-tls/snooze-tls-dhparam-run/type b/s6/snooze-tls/snooze-tls-dhparam-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/tinc/tinc-log/consumer-for b/s6/tinc/tinc-log/consumer-for @@ -0,0 +1 @@ +tinc-run diff --git a/s6/tinc/tinc-log/pipeline-name b/s6/tinc/tinc-log/pipeline-name @@ -0,0 +1 @@ +tinc diff --git a/s6/tinc/tinc-log/run b/s6/tinc/tinc-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/tinc diff --git a/s6/tinc/tinc-log/type b/s6/tinc/tinc-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/tinc/tinc-run/data/conf.d/common.conf b/s6/tinc/tinc-run/data/conf.d/common.conf @@ -0,0 +1,2 @@ +DeviceStandby = no +PingTimeout = 15 diff --git a/s6/tinc/tinc-run/data/hosts/kroa b/s6/tinc/tinc-run/data/hosts/kroa @@ -0,0 +1,13 @@ +Address = kroa.josuah.net +Subnet = 172.16.55.5 +Port = 6655 + +-----BEGIN RSA PUBLIC KEY----- +MIIBCgKCAQEAmnT1YEcPTOiaa/GfWsFF1p3Qo/xeIjIb6e/cG62nKcjJSS+L3G+P +VUFOT7YfRdggzWDAMvxdAq5+DFcg2v3iDm8yTcv8ITaSKHFp4Tarkl2zEs5VELVY +mcPrYI99oyo9xiXh+x1G9/wp+uKxgoeU4m0+iNwyZw7ypoIgJhx8TfT7rgaXmyNX +HDBu/hBH7orTF3TMRp/VrWqD8UQyD0tK1gGQe4WIQJqouPxd44O8tKRgtha69q42 +kZ92DuFHLjTkYFjt4WKGEUAdja+aqbk5QeNyoOHtw9VkTIJcWShwPTYj0Ykdm/BS +oyBpV8pID+xWz81lpMilfanlPjgmzc6UvQIDAQAB +-----END RSA PUBLIC KEY----- +Ed25519PublicKey = UzE1NtmdKv3MWpslesWIT4/AB3a8WZX+AP/2suMRUnK diff --git a/s6/tinc/tinc-run/data/hosts/nas b/s6/tinc/tinc-run/data/hosts/nas @@ -0,0 +1,13 @@ +Address = nas.josuah.net +Subnet = 172.16.55.2 +Port = 655 + +-----BEGIN RSA PUBLIC KEY----- +MIIBCgKCAQEAxFl/zn8owPVa0EBaazQaUck0ImV3+VS9+jOs0tePcQxuYHtX94dm +ZlYADJP/TaN8IEezQcgm2+iyavoOEBTCKhQ7/mYqG6UI2bcZjtu5UFl37YUJEYHN +dhvrhJwoYOWTFSu/d+UT/k8tFxoW308AXxqmb85egSBg8zaekrS7ibBSMi+AVaAz +g/Me+qgWh2j6jGh55Av1JeJ+1trlRLIvMRDwPe0U4hRjEZ/nBXFQS67AW1qg2tSF +3ieQgIr12FyZMw3ieWKiUW3JShdYRRMnV8hfKsn98R8LOirXBY2nCqRkWvKjYyY6 +bN2MzG57jdprYDR4ljglDFaXsNCDFgWTXwIDAQAB +-----END RSA PUBLIC KEY----- +Ed25519PublicKey = QbVvGg+CgFHyzWzbmG4hpY7Kus3kMZean2Vj52v2roN diff --git a/s6/tinc/tinc-run/data/hosts/pdmg b/s6/tinc/tinc-run/data/hosts/pdmg @@ -0,0 +1,12 @@ +Subnet = 172.16.55.4 +Port = 655 + +-----BEGIN RSA PUBLIC KEY----- +MIIBCgKCAQEAxnCPtS3uHC8ZwZCDDPpDZWfuQF2PP1GdqHAF7pmk1mXCfapSVU/I +5gVP7scrbSKhNXpeQvgfRk7BQ+O1TpvhYDJRR6/xlACbaWeoFIQLbBMik10Dvw7k +Zrt/cnF8WTdEgQ52GIhwJhc/ZoBQHLfoAPZrD3lyTG4PQb/VyouQVJq8JgthHgIi +u3jz3meiB292rz9kg+wafl7YVsvWQZMK3CAHWjKLOaSNFYM6zkZU42v5d2mkC1aT +JowYMn0GRTKL4IC2WkzAt1JNK5Hd8YexdKBfqmobZI+SevlPYVkZLM7jmcTR7836 +bdBZF/tZpvRUY7eHSwVni576SwO+zakt3wIDAQAB +-----END RSA PUBLIC KEY----- +Ed25519PublicKey = 5ooarAS0cWAxPQ6q2wn/1ZvhLYuz6ZRSJGZFFMMeZBF diff --git a/s6/tinc/tinc-run/data/hosts/rpi b/s6/tinc/tinc-run/data/hosts/rpi @@ -0,0 +1,13 @@ +Address = rpi.josuah.net +Subnet = 172.16.55.3 +Port = 655 + +-----BEGIN RSA PUBLIC KEY----- +MIIBCgKCAQEA35oN9yPu+lF7ZmphYandl896xjKYnNjIn5UB4gGvfbBEEA3kKYev +6Z4ApOvw2AgQ3WVbAynG3KbNj5jsCBBG8M9PfSPeFn4jpjycDqORi3sW6z3MQHfZ +u61jif16QtuuwXtrTiWO+MEVmSsCH9Vxtq5L6qJHZA7pEkQMxu/aEjOpYdpwZb/M +AnO7TU+PzTjUte40sfrIczHHkpDh8CdS1mKseF1XcNBhUANB7F6hQwhwD96GdGer +ioqMpltyyXMz4oZvhV+LD/jVOUXD1FZjiqO5TNtCFXYDLF/gxq/vmQ84eDo/I3Mo +E7wbHst5mOSRLBUP9cCAys/r6+JAdg+LfwIDAQAB +-----END RSA PUBLIC KEY----- +Ed25519PublicKey = Zsy56fH9Hbd/qiRWRy/7YEKv4eQUPI1o+3iXs8lHN1N diff --git a/s6/tinc/tinc-run/data/hosts/t470s b/s6/tinc/tinc-run/data/hosts/t470s @@ -0,0 +1,12 @@ +Subnet = 172.16.55.1 + +Port = 12196 +-----BEGIN RSA PUBLIC KEY----- +MIIBCgKCAQEAs99vlkaTp2BWltxN5KiBMkH/fHV1O3DWARK6ojFlhgENdmGjDxxk +0rshmaAvSjZ3uU2z+QkUIpovqEZf5I5abrAu1yKyMTIMFwqasa5D3TSkcePf+dD7 +LIr/YBWPl6kxHrNd2s3qPXBoYNaTBX7CCdXla7Rlz1/EnkMCfSLLd6YQsaCR4MsE +dwgR17bu5MsvB9YNLvbkqHHZCwvwIHrvX8dxvCr1BZwHAt/SDwg0nnTD2YNBUUl+ +SsXzMNfKiEjqmfHGfzMmP9Q9yjM6W5YAr+/Y7OPb/LnsPbYNC1L5YqaKskM431JU +vcpAPqjRJTvo+ji4hKrKdRal6tE61ZUW4wIDAQAB +-----END RSA PUBLIC KEY----- +Ed25519PublicKey = Wnd7bglt6wxqz/QJT1KH9wajs2LUUnMTHTDSU7/SsQM diff --git a/s6/tinc/tinc-run/data/tinc-up b/s6/tinc/tinc-run/data/tinc-up @@ -0,0 +1,11 @@ +#!/bin/sh -ex + +case $(uname) in +(*BSD) + ifconfig "$INTERFACE" "$(tinc -c . get subnet)" netmask 255.255.255.0 + ;; +(Linux) + ip link set "$INTERFACE" up + ip addr add "$(tinc -c . get subnet | sed q)/24" dev "$INTERFACE" + ;; +esac diff --git a/s6/tinc/tinc-run/producer-for b/s6/tinc/tinc-run/producer-for @@ -0,0 +1 @@ +tinc-log diff --git a/s6/tinc/tinc-run/run b/s6/tinc/tinc-run/run @@ -0,0 +1,8 @@ +#!/usr/bin/env execlineb +# vpn focused on mesh networking +fdmove -c 2 1 + +tincd -D + -d 5 + --config=./data + --pidfile=./data/pid diff --git a/s6/tinc/tinc-run/type b/s6/tinc/tinc-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/tinysshd/tinysshd-log/consumer-for b/s6/tinysshd/tinysshd-log/consumer-for @@ -0,0 +1 @@ +tinysshd-run diff --git a/s6/tinysshd/tinysshd-log/pipeline-name b/s6/tinysshd/tinysshd-log/pipeline-name @@ -0,0 +1 @@ +tinysshd diff --git a/s6/tinysshd/tinysshd-log/run b/s6/tinysshd/tinysshd-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/tinysshd diff --git a/s6/tinysshd/tinysshd-log/type b/s6/tinysshd/tinysshd-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/tinysshd/tinysshd-run/data/... b/s6/tinysshd/tinysshd-run/data/... diff --git a/s6/tinysshd/tinysshd-run/env/PORT b/s6/tinysshd/tinysshd-run/env/PORT @@ -0,0 +1 @@ +22 diff --git a/s6/tinysshd/tinysshd-run/producer-for b/s6/tinysshd/tinysshd-run/producer-for @@ -0,0 +1 @@ +tinysshd-log diff --git a/s6/tinysshd/tinysshd-run/run b/s6/tinysshd/tinysshd-run/run @@ -0,0 +1,12 @@ +#!/usr/bin/env execlineb +# SSHv2 server with minimal footprint https://tinyssh.org/ +fdmove -c 2 1 + +foreground { if { test ! -d ./data/key/ } tinysshd-makekey ./data/key/ } +foreground { chmod 500 ./data/key/ } + +s6-envdir env +importas PORT PORT + +s6-tcpserver 0.0.0.0 $PORT +tinysshd -sovv data/key diff --git a/s6/tinysshd/tinysshd-run/type b/s6/tinysshd/tinysshd-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/tor/tor-log/consumer-for b/s6/tor/tor-log/consumer-for @@ -0,0 +1 @@ +tor-run diff --git a/s6/tor/tor-log/pipeline-name b/s6/tor/tor-log/pipeline-name @@ -0,0 +1 @@ +tor diff --git a/s6/tor/tor-log/run b/s6/tor/tor-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/tor diff --git a/s6/tor/tor-log/type b/s6/tor/tor-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/tor/tor-run/data/conf b/s6/tor/tor-run/data/conf @@ -0,0 +1,26 @@ +Log debug stderr +RunAsDaemon 0 + +DataDirectory @LOCALSTATEDIR@/var/tor + +## Once you have configured a hidden service, you can look at the +## contents of the file ".../hidden_service/hostname" for the address +## to tell people. +## +## HiddenServicePort x y:z says to redirect requests on port x to the +## address y:z. + +SOCKSPort 0 +User tor +PIDFile /var/tor/pid +Log notice stderr +DataDirectory /var/tor + +HiddenServiceDir /var/tor/gopher +HiddenServicePort 70 127.0.0.1:71 + +HiddenServiceDir /var/tor/http +HiddenServicePort 80 127.0.0.1:8080 + +HiddenServiceDir /var/tor/icecast +HiddenServicePort 3232 127.0.0.1:3232 diff --git a/s6/tor/tor-run/producer-for b/s6/tor/tor-run/producer-for @@ -0,0 +1 @@ +tor-log diff --git a/s6/tor/tor-run/run b/s6/tor/tor-run/run @@ -0,0 +1,5 @@ +#!/usr/bin/env execlineb +# tor daemon for routing and publishing services +fdmove -c 2 1 + +tor -f ./data/conf diff --git a/s6/tor/tor-run/type b/s6/tor/tor-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/transmission/transmission-log/consumer-for b/s6/transmission/transmission-log/consumer-for @@ -0,0 +1 @@ +transmission-run diff --git a/s6/transmission/transmission-log/pipeline-name b/s6/transmission/transmission-log/pipeline-name @@ -0,0 +1 @@ +transmission diff --git a/s6/transmission/transmission-log/run b/s6/transmission/transmission-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log /var/log/transmission diff --git a/s6/transmission/transmission-log/type b/s6/transmission/transmission-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/transmission/transmission-run/producer-for b/s6/transmission/transmission-run/producer-for @@ -0,0 +1 @@ +transmission-log diff --git a/s6/transmission/transmission-run/run b/s6/transmission/transmission-run/run @@ -0,0 +1,4 @@ +#!/usr/bin/env execlineb +fdmove -c 2 1 + +transmission-daemon -f -T --log-debug diff --git a/s6/transmission/transmission-run/type b/s6/transmission/transmission-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/u9fs/u9fs-log/consumer-for b/s6/u9fs/u9fs-log/consumer-for @@ -0,0 +1 @@ +u9fs-run diff --git a/s6/u9fs/u9fs-log/pipeline-name b/s6/u9fs/u9fs-log/pipeline-name @@ -0,0 +1 @@ +u9fs diff --git a/s6/u9fs/u9fs-log/run b/s6/u9fs/u9fs-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/u9fs diff --git a/s6/u9fs/u9fs-log/type b/s6/u9fs/u9fs-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/u9fs/u9fs-mount-log/consumer-for b/s6/u9fs/u9fs-mount-log/consumer-for @@ -0,0 +1 @@ +u9fs-mount-run diff --git a/s6/u9fs/u9fs-mount-log/pipeline-name b/s6/u9fs/u9fs-mount-log/pipeline-name @@ -0,0 +1 @@ +u9fs-mount diff --git a/s6/u9fs/u9fs-mount-log/run b/s6/u9fs/u9fs-mount-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/u9fs-mount diff --git a/s6/u9fs/u9fs-mount-log/type b/s6/u9fs/u9fs-mount-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/u9fs/u9fs-mount-run/down b/s6/u9fs/u9fs-mount-run/down @@ -0,0 +1,4 @@ +#!/usr/local/bin/execlineb +# mount a 9p filesystem from a local UNIX socket + +exec /mnt/9p diff --git a/s6/u9fs/u9fs-mount-run/producer-for b/s6/u9fs/u9fs-mount-run/producer-for @@ -0,0 +1 @@ +u9fs-mount-log diff --git a/s6/u9fs/u9fs-mount-run/type b/s6/u9fs/u9fs-mount-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/u9fs/u9fs-mount-run/up b/s6/u9fs/u9fs-mount-run/up @@ -0,0 +1,5 @@ +#!/usr/local/bin/execlineb +# mount a 9p filesystem from a local UNIX socket + +mkdir -p /mnt/9p +exec 9pfs -U /tmp/9p /mnt/9p diff --git a/s6/u9fs/u9fs-run/producer-for b/s6/u9fs/u9fs-run/producer-for @@ -0,0 +1 @@ +u9fs-log diff --git a/s6/u9fs/u9fs-run/run b/s6/u9fs/u9fs-run/run @@ -0,0 +1,7 @@ +#!/usr/bin/env execlineb +# forward u9fs from a remote host to a local socket through ssh +fdmove -c 2 1 + +unixserver -v /tmp/9p +ssh u9fs@host +u9fs -l /dev/stderr -a none -u u9fs /home/u9fs diff --git a/s6/u9fs/u9fs-run/type b/s6/u9fs/u9fs-run/type @@ -0,0 +1 @@ +longrun diff --git a/s6/venti/venti-log/consumer-for b/s6/venti/venti-log/consumer-for @@ -0,0 +1 @@ +venti-run diff --git a/s6/venti/venti-log/pipeline-name b/s6/venti/venti-log/pipeline-name @@ -0,0 +1 @@ +venti diff --git a/s6/venti/venti-log/run b/s6/venti/venti-log/run @@ -0,0 +1,2 @@ +#!/usr/bin/env execlineb +s6-log t /var/log/venti diff --git a/s6/venti/venti-log/type b/s6/venti/venti-log/type @@ -0,0 +1 @@ +longrun diff --git a/s6/venti/venti-run/data/conf b/s6/venti/venti-run/data/conf @@ -0,0 +1,8 @@ +index main + +isect /home/venti/isect0 +isect /home/venti/isect1 +arenas /home/venti/arena0 +mem 10M +bcmem 20M +icmem 30M diff --git a/s6/venti/venti-run/data/fmt b/s6/venti/venti-run/data/fmt @@ -0,0 +1,9 @@ +#!/bin/sh -e + +dd if=/dev/zero of=/home/venti/isect0 bs=1M count=1' +dd if=/dev/zero of=/home/venti/arena0 bs=1M count=1k + +/9/port/bin/venti/fmtisect isect0 /home/venti/isect0 +/9/port/bin/venti/fmtisect isect1 /home/venti/isect1 +/9/port/bin/venti/fmtarenas arena0 /home/venti/arena0 +/9/port/bin/venti/fmtindex conf diff --git a/s6/venti/venti-run/producer-for b/s6/venti/venti-run/producer-for @@ -0,0 +1 @@ +venti-log diff --git a/s6/venti/venti-run/run b/s6/venti/venti-run/run @@ -0,0 +1,10 @@ +#!/usr/bin/env execlineb +# write once read many (worm) storage server from plan 9 (p9p) +fdmove -c 2 1 + +s6-setuidgid venti + +venti -s + -c ./data/conf + -a tcp!*!17034 + -h tcp!*!8080 diff --git a/s6/venti/venti-run/type b/s6/venti/venti-run/type @@ -0,0 +1 @@ +longrun