13 Commits

Author SHA1 Message Date
Eric Vidal
3ede7a7e1a ooops 2016-06-16 09:19:16 +04:00
Eric Vidal
ecf880bbba separate classic and rc service, change location of compiled database for user 2016-06-16 09:16:38 +04:00
Eric Vidal
e078f81833 rename variable boot-serv 2016-06-16 09:11:31 +04:00
Eric Vidal
2da29b1f89 add s6.local script 2016-06-16 09:10:03 +04:00
Eric Vidal
2229c16ccb rebuild database according to the change of boot-rc-serv 2016-06-16 09:08:47 +04:00
Eric Vidal
a973077e7c rename rc service for boot, separate boot service and user service, add new features, rename directory for better clarity 2016-06-16 09:07:44 +04:00
Eric Vidal
c1462043c4 rename service directory for boot to better clarity 2016-06-16 09:06:13 +04:00
Eric Vidal
8f488f90c2 add s6.local features 2016-06-16 08:59:12 +04:00
Eric Vidal
5b60188bd1 change poweroff, shutdown, reboot script according to the new location of .s6-svscan 2016-06-16 08:58:45 +04:00
Eric Vidal
6467aa9404 change database location with -l option 2016-06-16 08:57:22 +04:00
Eric Vidal
ac5d797b7f change database initiation with -l option 2016-06-16 08:56:40 +04:00
Eric Vidal
1360a70b56 remove symlinks,use directly the copy of boot-serv variable 2016-06-16 08:55:50 +04:00
Eric Vidal
46e69c496d change completion according to the new directory for service 2016-06-16 08:54:24 +04:00
156 changed files with 133 additions and 70 deletions

View File

@@ -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=(

View File

@@ -47,4 +47,4 @@ if {
}
}
}
s6-echo -- 00 successfully started
s6-echo -- 00 successfully started

View File

@@ -0,0 +1,3 @@
all-Boot
#all-User
all-Switch

View File

@@ -0,0 +1,3 @@
switch-ready
switch-svscan
switch-user

View File

@@ -6,4 +6,5 @@ rwfs-localtime
rwfs-random
rwfs-cleanboot
rwfs-end
rwfs-dmesglog
rwfs-dmesglog
rwfs-s6local

View File

@@ -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

View File

@@ -1,4 +1,4 @@
#!/usr/bin/execlineb -P
#!/usr/local/bin/execlineb -P
fdmove -c 2 1
if { s6-echo -- rofs-kernruntime started }

View File

@@ -4,4 +4,4 @@ rwfs-iptables
rwfs-nonetwork
rwfs-localtime
rwfs-random
rwfs-cleanboot
rwfs-cleanboot

View File

@@ -1,4 +1,4 @@
#!/usr/bin/execlineb -P
#!/usr/local/bin/execlineb -P
fdmove -c 2 1
if { s6-echo -- rwfs-nonetwork started }

View File

@@ -0,0 +1 @@
rwfs-dmesglog

View 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

View File

@@ -0,0 +1 @@
all-Boot

View 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

View File

@@ -0,0 +1 @@
switch-ready

View File

@@ -0,0 +1,3 @@
#!/usr/local/bin/execlineb -P
fdmove -c 2 1
s6-svscan -t0 /run/user/service

View File

@@ -0,0 +1,2 @@
switch-ready
switch-svscan

View File

@@ -0,0 +1,2 @@
#!/usr/local/bin/execlineb -P
s6-rc -l /run/user-rc -da change

View File

@@ -0,0 +1 @@
oneshot

View 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

View File

@@ -0,0 +1 @@
longrun

View File

@@ -0,0 +1 @@
oneshot

View File

@@ -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