Initial commit

This commit is contained in:
Nathan Fisher 2022-10-04 14:17:35 +00:00
commit 31b7898d0c
47 changed files with 102 additions and 0 deletions

6
README.md Normal file
View File

@ -0,0 +1,6 @@
These are s6 compatible service definitions for HitchHiker linux. Edit to match your
actual setup, drop them into /etc/s6/sv and then rebuild the service database with
the `s6-rc-compile` program.
```Sh
s6-rc-compile /tmp/my-bundle /etc/s6/sv
```

1
sv/dbus-log/consumer-for Normal file
View File

@ -0,0 +1 @@
dbus-srv

View File

@ -0,0 +1 @@
3

View File

@ -0,0 +1 @@
dbus

9
sv/dbus-log/run Normal file
View File

@ -0,0 +1,9 @@
#!/bin/execlineb -P
envfile /etc/s6/config/dbus.conf
importas -sCuD "n3 s2000000 T" DIRECTIVES DIRECTIVES
ifelse { test -w /var/log } {
foreground { install -d -o s6log -g s6log /var/log/dbus }
s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/dbus
}
foreground { install -d -o s6log -g s6log /run/log/dbus }
s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/dbus

1
sv/dbus-log/timeout-down Normal file
View File

@ -0,0 +1 @@
0

1
sv/dbus-log/type Normal file
View File

@ -0,0 +1 @@
longrun

View File

@ -0,0 +1 @@
3

1
sv/dbus-srv/producer-for Normal file
View File

@ -0,0 +1 @@
dbus-log

11
sv/dbus-srv/run Normal file
View File

@ -0,0 +1,11 @@
#!/bin/execlineb -P
foreground { /usr/pkg/bin/dbus-uuidgen --ensure=/etc/machine-id }
foreground { install -m755 -g 81 -o 81 -d /run/dbus }
foreground {
envfile /etc/s6/config/dbus.conf
importas -uD "no" DBUS_UUIDGEN DBUS_UUIDGEN
if { test ${DBUS_UUIDGEN} = "yes" }
redirfd -w 1 /etc/machine-id dbus-uuidgen
}
fdmove -c 2 1
exec /usr/pkg/bin/dbus-daemon --system --nofork --nopidfile --print-pid=3

1
sv/dbus-srv/timeout-down Normal file
View File

@ -0,0 +1 @@
0

1
sv/dbus-srv/type Normal file
View File

@ -0,0 +1 @@
longrun

View File

@ -0,0 +1 @@
dhcpcd-srv

View File

@ -0,0 +1 @@
3

View File

@ -0,0 +1 @@
dhcpcd

9
sv/dhcpcd-log/run Normal file
View File

@ -0,0 +1,9 @@
#!/bin/execlineb -P
envfile /etc/s6/config/dhcpcd.conf
importas -sCuD "n3 s2000000 T" DIRECTIVES DIRECTIVES
ifelse { test -w /var/log } {
foreground { install -d -o s6log -g s6log /var/log/dhcpcd }
s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/dhcpcd
}
foreground { install -d -o s6log -g s6log /run/log/dhcpcd }
s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/dhcpcd

View File

@ -0,0 +1 @@
0

1
sv/dhcpcd-log/type Normal file
View File

@ -0,0 +1 @@
longrun

View File

View File

@ -0,0 +1 @@
dhcpcd-log

3
sv/dhcpcd-srv/run Normal file
View File

@ -0,0 +1,3 @@
#!/bin/execlineb -P
fdmove -c 2 1
exec dhcpcd -B -M

View File

@ -0,0 +1 @@
0

View File

@ -0,0 +1 @@
10

1
sv/dhcpcd-srv/type Normal file
View File

@ -0,0 +1 @@
longrun

1
sv/gpm-log/consumer-for Normal file
View File

@ -0,0 +1 @@
gpm-srv

View File

@ -0,0 +1 @@
3

1
sv/gpm-log/pipeline-name Normal file
View File

@ -0,0 +1 @@
gpm

8
sv/gpm-log/run Normal file
View File

@ -0,0 +1,8 @@
#!/bin/execlineb -P
importas -sCuD "n3 s2000000 T" DIRECTIVES DIRECTIVES
ifelse { test -w /var/log } {
foreground { install -d -o s6log -g s6log /var/log/gpm }
s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/gpm
}
foreground { install -d -o s6log -g s6log /run/log/gpm }
s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/gpm

1
sv/gpm-log/timeout-down Normal file
View File

@ -0,0 +1 @@
0

1
sv/gpm-log/type Normal file
View File

@ -0,0 +1 @@
longrun

1
sv/gpm-srv/producer-for Normal file
View File

@ -0,0 +1 @@
gpm-log

3
sv/gpm-srv/run Normal file
View File

@ -0,0 +1,3 @@
#!/bin/execlineb -P
fdmove -c 2 1
exec gpm -m /dev/input/mouse0 -t ps2 -D

1
sv/gpm-srv/timeout-down Normal file
View File

@ -0,0 +1 @@
0

1
sv/gpm-srv/type Normal file
View File

@ -0,0 +1 @@
longrun

4
sv/wireless/contents Normal file
View File

@ -0,0 +1,4 @@
wpa_supplicant-log
wpa_supplicant-srv
dhcpcd-log
dhcpcd-srv

1
sv/wireless/type Normal file
View File

@ -0,0 +1 @@
bundle

View File

@ -0,0 +1 @@
wpa_supplicant-srv

View File

@ -0,0 +1 @@
3

View File

@ -0,0 +1 @@
wpa_supplicant

View File

@ -0,0 +1,9 @@
#!/bin/execlineb -P
envfile /etc/s6/config/wpa_supplicant.conf
importas -sCuD "n3 s2000000 T" DIRECTIVES DIRECTIVES
ifelse { test -w /var/log } {
foreground { install -d -o s6log -g s6log /var/log/wpa_supplicant }
s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/wpa_supplicant
}
foreground { install -d -o s6log -g s6log /run/log/wpa_supplicant }
s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/wpa_supplicant

View File

@ -0,0 +1 @@
0

View File

@ -0,0 +1 @@
longrun

View File

@ -0,0 +1 @@
wpa_supplicant-log

View File

@ -0,0 +1,5 @@
#!/bin/execlineb -P
envfile /etc/s6/config/wpa_supplicant.conf
importas -uD "wlan0" WPA_INTERFACE WPA_INTERFACE
fdmove -c 2 1
exec /sbin/wpa_supplicant -i ${WPA_INTERFACE} -c /etc/wpa_supplicant/wpa_supplicant.conf

View File

@ -0,0 +1 @@
0

View File

@ -0,0 +1 @@
longrun