Compare commits
13 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
3ede7a7e1a | ||
![]() |
ecf880bbba | ||
![]() |
e078f81833 | ||
![]() |
2da29b1f89 | ||
![]() |
2229c16ccb | ||
![]() |
a973077e7c | ||
![]() |
c1462043c4 | ||
![]() |
8f488f90c2 | ||
![]() |
5b60188bd1 | ||
![]() |
6467aa9404 | ||
![]() |
ac5d797b7f | ||
![]() |
1360a70b56 | ||
![]() |
46e69c496d |
8
_s6-svc
8
_s6-svc
@@ -4,14 +4,16 @@
|
||||
# Eric Vidal <eric@obarun.org>
|
||||
# services in /run/s6/service. Change the path variable to suit your needs.
|
||||
|
||||
path_dir=/run/s6/service
|
||||
path_dir_boot=/run/boot/service
|
||||
path_dir_user=/run/user/service
|
||||
|
||||
typeset -A opt_args
|
||||
|
||||
_path() {
|
||||
local list_dir
|
||||
list_dir=( $path_dir/* )
|
||||
compadd "$@" -a list_dir
|
||||
list_dir_boot=( $path_dir_boot/* )
|
||||
list_dir_user=( $path_dir_user/* )
|
||||
compadd "$@" -a list_dir_boot list_dir_user
|
||||
}
|
||||
|
||||
_list_common=(
|
||||
|
@@ -47,4 +47,4 @@ if {
|
||||
}
|
||||
}
|
||||
}
|
||||
s6-echo -- 00 successfully started
|
||||
s6-echo -- 00 successfully started
|
3
boot-rc-serv/All/contents
Normal file
3
boot-rc-serv/All/contents
Normal file
@@ -0,0 +1,3 @@
|
||||
all-Boot
|
||||
#all-User
|
||||
all-Switch
|
3
boot-rc-serv/all-Switch/contents
Normal file
3
boot-rc-serv/all-Switch/contents
Normal file
@@ -0,0 +1,3 @@
|
||||
switch-ready
|
||||
switch-svscan
|
||||
switch-user
|
@@ -6,4 +6,5 @@ rwfs-localtime
|
||||
rwfs-random
|
||||
rwfs-cleanboot
|
||||
rwfs-end
|
||||
rwfs-dmesglog
|
||||
rwfs-dmesglog
|
||||
rwfs-s6local
|
@@ -18,4 +18,4 @@ if -t {
|
||||
fsck -A -T -a noopts=_netdev
|
||||
}
|
||||
wait { }
|
||||
s6-echo -- checkfs-fscheck successfully started
|
||||
s6-echo -- checkfs-fscheck successfully started
|
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/execlineb -P
|
||||
#!/usr/local/bin/execlineb -P
|
||||
|
||||
fdmove -c 2 1
|
||||
if { s6-echo -- rofs-kernruntime started }
|
@@ -4,4 +4,4 @@ rwfs-iptables
|
||||
rwfs-nonetwork
|
||||
rwfs-localtime
|
||||
rwfs-random
|
||||
rwfs-cleanboot
|
||||
rwfs-cleanboot
|
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/execlineb -P
|
||||
#!/usr/local/bin/execlineb -P
|
||||
|
||||
fdmove -c 2 1
|
||||
if { s6-echo -- rwfs-nonetwork started }
|
1
boot-rc-serv/rwfs-s6local/dependencies
Normal file
1
boot-rc-serv/rwfs-s6local/dependencies
Normal file
@@ -0,0 +1 @@
|
||||
rwfs-dmesglog
|
7
boot-rc-serv/rwfs-s6local/up
Normal file
7
boot-rc-serv/rwfs-s6local/up
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/usr/local/bin/execlineb -P
|
||||
fdmove -c 2 1
|
||||
s6-envdir /etc/s6/env/s6-conf
|
||||
importas -D "" S6LOCAL S6LOCAL
|
||||
ifelse -X { s6-test $S6LOCAL = yes }
|
||||
{ exec -c /etc/s6/data/scripts/s6.local }
|
||||
s6-echo -- s6.local desactived
|
1
boot-rc-serv/switch-ready/dependencies
Normal file
1
boot-rc-serv/switch-ready/dependencies
Normal file
@@ -0,0 +1 @@
|
||||
all-Boot
|
7
boot-rc-serv/switch-ready/up
Normal file
7
boot-rc-serv/switch-ready/up
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/usr/local/bin/execlineb -P
|
||||
fdmove -c 2 1
|
||||
if { s6-echo -- start switch-presvscan }
|
||||
if { s6-mkdir -p -m 0755 /run/user/service }
|
||||
forbacktickx -p -0 serv { s6-ls -0 /etc/s6-serv/enabled/classic }
|
||||
importas -u serv serv
|
||||
s6-ln -s -- /etc/s6-serv/enabled/classic/${serv} /run/user/service
|
1
boot-rc-serv/switch-svscan/dependencies
Normal file
1
boot-rc-serv/switch-svscan/dependencies
Normal file
@@ -0,0 +1 @@
|
||||
switch-ready
|
3
boot-rc-serv/switch-svscan/run
Normal file
3
boot-rc-serv/switch-svscan/run
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/usr/local/bin/execlineb -P
|
||||
fdmove -c 2 1
|
||||
s6-svscan -t0 /run/user/service
|
2
boot-rc-serv/switch-user/dependencies
Normal file
2
boot-rc-serv/switch-user/dependencies
Normal file
@@ -0,0 +1,2 @@
|
||||
switch-ready
|
||||
switch-svscan
|
2
boot-rc-serv/switch-user/down
Normal file
2
boot-rc-serv/switch-user/down
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/usr/local/bin/execlineb -P
|
||||
s6-rc -l /run/user-rc -da change
|
1
boot-rc-serv/switch-user/type
Normal file
1
boot-rc-serv/switch-user/type
Normal file
@@ -0,0 +1 @@
|
||||
oneshot
|
6
boot-rc-serv/switch-user/up
Normal file
6
boot-rc-serv/switch-user/up
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/usr/local/bin/execlineb -P
|
||||
fdmove -c 2 1
|
||||
if { s6-echo -- switch-user started }
|
||||
if { s6-rc-init -c /etc/s6-serv/enabled/rc/compiled/current -l /run/user-rc /run/user/service }
|
||||
if { s6-rc -l /run/user-rc -u change All }
|
||||
s6-echo -- switch-user successfully started
|
1
boot-rc-serv/udevd-udevadm/type
Normal file
1
boot-rc-serv/udevd-udevadm/type
Normal file
@@ -0,0 +1 @@
|
||||
longrun
|
1
boot-rc-serv/udevd-udevrules/type
Normal file
1
boot-rc-serv/udevd-udevrules/type
Normal file
@@ -0,0 +1 @@
|
||||
oneshot
|
@@ -1,4 +1,4 @@
|
||||
#!/usr/local/bin/execlineb -P
|
||||
|
||||
foreground { /etc/s6/stage2.tini }
|
||||
s6-svscanctl -h -- /run/s6-run/service
|
||||
s6-svscanctl -h -- /run/boot/service
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user