Create the following longrun
source directory
in the src/web/git-daemon-ip4-srv
subdirectory of the
system supervision tree.
git-daemon-ipv4-srv ├── dependencies.d │ ├── mount # empty/arbitrary │ └── networking # empty/arbitrary ├── notification-fd # 3 ├── producer-for # git-daemon-ipv4-log ├── run # see below └── type # longrun
with the following run script:
#!/bin/execlineb -P fdmove -c 2 1 s6-setuidgid git fdmove 1 3 s6-tcpserver -1 -- @YOURIP@ 9418 git daemon --inetd --log-destination=stderr --base-path=/home/git/repos --export-all
This will run as user git
and provide all git repositories found below
/home/git/repos,
e.g. /home/git/repos/@MYREPO@.
Replace @YOURIP@
with the ip address of the server.
If desired repeat the process for IPv6,
the directory would then be
system/src/web/git-daemon-ip6-srv
and producer-for
should contain git-daemon-ip6-log.