Initial commit
This commit is contained in:
commit
31b7898d0c
6
README.md
Normal file
6
README.md
Normal 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
1
sv/dbus-log/consumer-for
Normal file
@ -0,0 +1 @@
|
|||||||
|
dbus-srv
|
1
sv/dbus-log/notification-fd
Normal file
1
sv/dbus-log/notification-fd
Normal file
@ -0,0 +1 @@
|
|||||||
|
3
|
1
sv/dbus-log/pipeline-name
Normal file
1
sv/dbus-log/pipeline-name
Normal file
@ -0,0 +1 @@
|
|||||||
|
dbus
|
9
sv/dbus-log/run
Normal file
9
sv/dbus-log/run
Normal 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
1
sv/dbus-log/timeout-down
Normal file
@ -0,0 +1 @@
|
|||||||
|
0
|
1
sv/dbus-log/type
Normal file
1
sv/dbus-log/type
Normal file
@ -0,0 +1 @@
|
|||||||
|
longrun
|
1
sv/dbus-srv/notification-fd
Normal file
1
sv/dbus-srv/notification-fd
Normal file
@ -0,0 +1 @@
|
|||||||
|
3
|
1
sv/dbus-srv/producer-for
Normal file
1
sv/dbus-srv/producer-for
Normal file
@ -0,0 +1 @@
|
|||||||
|
dbus-log
|
11
sv/dbus-srv/run
Normal file
11
sv/dbus-srv/run
Normal 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
1
sv/dbus-srv/timeout-down
Normal file
@ -0,0 +1 @@
|
|||||||
|
0
|
1
sv/dbus-srv/type
Normal file
1
sv/dbus-srv/type
Normal file
@ -0,0 +1 @@
|
|||||||
|
longrun
|
1
sv/dhcpcd-log/consumer-for
Normal file
1
sv/dhcpcd-log/consumer-for
Normal file
@ -0,0 +1 @@
|
|||||||
|
dhcpcd-srv
|
1
sv/dhcpcd-log/notification-fd
Normal file
1
sv/dhcpcd-log/notification-fd
Normal file
@ -0,0 +1 @@
|
|||||||
|
3
|
1
sv/dhcpcd-log/pipeline-name
Normal file
1
sv/dhcpcd-log/pipeline-name
Normal file
@ -0,0 +1 @@
|
|||||||
|
dhcpcd
|
9
sv/dhcpcd-log/run
Normal file
9
sv/dhcpcd-log/run
Normal 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
|
1
sv/dhcpcd-log/timeout-down
Normal file
1
sv/dhcpcd-log/timeout-down
Normal file
@ -0,0 +1 @@
|
|||||||
|
0
|
1
sv/dhcpcd-log/type
Normal file
1
sv/dhcpcd-log/type
Normal file
@ -0,0 +1 @@
|
|||||||
|
longrun
|
0
sv/dhcpcd-srv/dependencies.d/udevd
Normal file
0
sv/dhcpcd-srv/dependencies.d/udevd
Normal file
1
sv/dhcpcd-srv/producer-for
Normal file
1
sv/dhcpcd-srv/producer-for
Normal file
@ -0,0 +1 @@
|
|||||||
|
dhcpcd-log
|
3
sv/dhcpcd-srv/run
Normal file
3
sv/dhcpcd-srv/run
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/execlineb -P
|
||||||
|
fdmove -c 2 1
|
||||||
|
exec dhcpcd -B -M
|
1
sv/dhcpcd-srv/timeout-down
Normal file
1
sv/dhcpcd-srv/timeout-down
Normal file
@ -0,0 +1 @@
|
|||||||
|
0
|
1
sv/dhcpcd-srv/timeout-kill
Normal file
1
sv/dhcpcd-srv/timeout-kill
Normal file
@ -0,0 +1 @@
|
|||||||
|
10
|
1
sv/dhcpcd-srv/type
Normal file
1
sv/dhcpcd-srv/type
Normal file
@ -0,0 +1 @@
|
|||||||
|
longrun
|
1
sv/gpm-log/consumer-for
Normal file
1
sv/gpm-log/consumer-for
Normal file
@ -0,0 +1 @@
|
|||||||
|
gpm-srv
|
1
sv/gpm-log/notification-fd
Normal file
1
sv/gpm-log/notification-fd
Normal file
@ -0,0 +1 @@
|
|||||||
|
3
|
1
sv/gpm-log/pipeline-name
Normal file
1
sv/gpm-log/pipeline-name
Normal file
@ -0,0 +1 @@
|
|||||||
|
gpm
|
8
sv/gpm-log/run
Normal file
8
sv/gpm-log/run
Normal 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
1
sv/gpm-log/timeout-down
Normal file
@ -0,0 +1 @@
|
|||||||
|
0
|
1
sv/gpm-log/type
Normal file
1
sv/gpm-log/type
Normal file
@ -0,0 +1 @@
|
|||||||
|
longrun
|
1
sv/gpm-srv/producer-for
Normal file
1
sv/gpm-srv/producer-for
Normal file
@ -0,0 +1 @@
|
|||||||
|
gpm-log
|
3
sv/gpm-srv/run
Normal file
3
sv/gpm-srv/run
Normal 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
1
sv/gpm-srv/timeout-down
Normal file
@ -0,0 +1 @@
|
|||||||
|
0
|
1
sv/gpm-srv/type
Normal file
1
sv/gpm-srv/type
Normal file
@ -0,0 +1 @@
|
|||||||
|
longrun
|
4
sv/wireless/contents
Normal file
4
sv/wireless/contents
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
wpa_supplicant-log
|
||||||
|
wpa_supplicant-srv
|
||||||
|
dhcpcd-log
|
||||||
|
dhcpcd-srv
|
1
sv/wireless/type
Normal file
1
sv/wireless/type
Normal file
@ -0,0 +1 @@
|
|||||||
|
bundle
|
1
sv/wpa_supplicant-log/consumer-for
Normal file
1
sv/wpa_supplicant-log/consumer-for
Normal file
@ -0,0 +1 @@
|
|||||||
|
wpa_supplicant-srv
|
1
sv/wpa_supplicant-log/notification-fd
Normal file
1
sv/wpa_supplicant-log/notification-fd
Normal file
@ -0,0 +1 @@
|
|||||||
|
3
|
1
sv/wpa_supplicant-log/pipeline-name
Normal file
1
sv/wpa_supplicant-log/pipeline-name
Normal file
@ -0,0 +1 @@
|
|||||||
|
wpa_supplicant
|
9
sv/wpa_supplicant-log/run
Normal file
9
sv/wpa_supplicant-log/run
Normal 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
|
1
sv/wpa_supplicant-log/timeout-down
Normal file
1
sv/wpa_supplicant-log/timeout-down
Normal file
@ -0,0 +1 @@
|
|||||||
|
0
|
1
sv/wpa_supplicant-log/type
Normal file
1
sv/wpa_supplicant-log/type
Normal file
@ -0,0 +1 @@
|
|||||||
|
longrun
|
0
sv/wpa_supplicant-srv/dependencies.d/dhcpcd
Normal file
0
sv/wpa_supplicant-srv/dependencies.d/dhcpcd
Normal file
1
sv/wpa_supplicant-srv/producer-for
Normal file
1
sv/wpa_supplicant-srv/producer-for
Normal file
@ -0,0 +1 @@
|
|||||||
|
wpa_supplicant-log
|
5
sv/wpa_supplicant-srv/run
Normal file
5
sv/wpa_supplicant-srv/run
Normal 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
|
1
sv/wpa_supplicant-srv/timeout-down
Normal file
1
sv/wpa_supplicant-srv/timeout-down
Normal file
@ -0,0 +1 @@
|
|||||||
|
0
|
1
sv/wpa_supplicant-srv/type
Normal file
1
sv/wpa_supplicant-srv/type
Normal file
@ -0,0 +1 @@
|
|||||||
|
longrun
|
Loading…
Reference in New Issue
Block a user