Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| da655949da |
@@ -36,6 +36,11 @@ write_services_66_conf(){
|
||||
write_services_conf 'svDir' '/etc/66/service' 'runsvDir' '/var/lib/66/system' > "$conf"
|
||||
}
|
||||
|
||||
write_services_finit_conf(){
|
||||
local conf="$1"/services-finit.conf
|
||||
write_service_conf 'svDir' '/etc/finit.d/available' 'runsvDir' '/etc/finit.d/enabled' > "$conf"
|
||||
}
|
||||
|
||||
write_postcfg(){
|
||||
local yaml
|
||||
yaml=$(write_yaml_header)
|
||||
|
||||
@@ -54,4 +54,14 @@ add_svc_66(){
|
||||
done
|
||||
}
|
||||
|
||||
add_sv_finit(){
|
||||
local mnt="$1" names="$2"
|
||||
for svc in $names; do
|
||||
if [[ -f "$mnt"/etc/finit/available/"$svc" ]]; then
|
||||
msg2 "Setting %s: [%s]" "${INITSYS}" "$svc"
|
||||
chroot "$mnt" initctl enable "$svc"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
#}}}
|
||||
|
||||
Reference in New Issue
Block a user