Initial commit
This commit is contained in:
commit
31b7898d0c
|
@ -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
|
||||||
|
```
|
|
@ -0,0 +1 @@
|
||||||
|
dbus-srv
|
|
@ -0,0 +1 @@
|
||||||
|
3
|
|
@ -0,0 +1 @@
|
||||||
|
dbus
|
|
@ -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
|
|
@ -0,0 +1 @@
|
||||||
|
0
|
|
@ -0,0 +1 @@
|
||||||
|
longrun
|
|
@ -0,0 +1 @@
|
||||||
|
3
|
|
@ -0,0 +1 @@
|
||||||
|
dbus-log
|
|
@ -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
|
|
@ -0,0 +1 @@
|
||||||
|
0
|
|
@ -0,0 +1 @@
|
||||||
|
longrun
|
|
@ -0,0 +1 @@
|
||||||
|
dhcpcd-srv
|
|
@ -0,0 +1 @@
|
||||||
|
3
|
|
@ -0,0 +1 @@
|
||||||
|
dhcpcd
|
|
@ -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
|
|
@ -0,0 +1 @@
|
||||||
|
0
|
|
@ -0,0 +1 @@
|
||||||
|
longrun
|
|
@ -0,0 +1 @@
|
||||||
|
dhcpcd-log
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
fdmove -c 2 1
|
||||||
|
exec dhcpcd -B -M
|
|
@ -0,0 +1 @@
|
||||||
|
0
|
|
@ -0,0 +1 @@
|
||||||
|
10
|
|
@ -0,0 +1 @@
|
||||||
|
longrun
|
|
@ -0,0 +1 @@
|
||||||
|
gpm-srv
|
|
@ -0,0 +1 @@
|
||||||
|
3
|
|
@ -0,0 +1 @@
|
||||||
|
gpm
|
|
@ -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
|
|
@ -0,0 +1 @@
|
||||||
|
0
|
|
@ -0,0 +1 @@
|
||||||
|
longrun
|
|
@ -0,0 +1 @@
|
||||||
|
gpm-log
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/execlineb -P
|
||||||
|
fdmove -c 2 1
|
||||||
|
exec gpm -m /dev/input/mouse0 -t ps2 -D
|
|
@ -0,0 +1 @@
|
||||||
|
0
|
|
@ -0,0 +1 @@
|
||||||
|
longrun
|
|
@ -0,0 +1,4 @@
|
||||||
|
wpa_supplicant-log
|
||||||
|
wpa_supplicant-srv
|
||||||
|
dhcpcd-log
|
||||||
|
dhcpcd-srv
|
|
@ -0,0 +1 @@
|
||||||
|
bundle
|
|
@ -0,0 +1 @@
|
||||||
|
wpa_supplicant-srv
|
|
@ -0,0 +1 @@
|
||||||
|
3
|
|
@ -0,0 +1 @@
|
||||||
|
wpa_supplicant
|
|
@ -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
|
|
@ -0,0 +1 @@
|
||||||
|
0
|
|
@ -0,0 +1 @@
|
||||||
|
longrun
|
|
@ -0,0 +1 @@
|
||||||
|
wpa_supplicant-log
|
|
@ -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
|
|
@ -0,0 +1 @@
|
||||||
|
0
|
|
@ -0,0 +1 @@
|
||||||
|
longrun
|
Loading…
Reference in New Issue