rcS, rcK: back to forking init scripts rather than sourcing them

This commit is contained in:
Calin Crisan 2015-11-23 01:44:10 +02:00
parent c173c1c862
commit 1c525a0a81
2 changed files with 2 additions and 12 deletions

View File

@ -12,12 +12,7 @@ echo "---- shutting down $os_name $os_version ----" >> $boot_log
(for i in $(ls -r /etc/init.d/S??*); do
[ ! -x "$i" ] && continue
[ -f /data/etc/no_$(basename $i) ] && continue
(
trap - INT QUIT TSTP
set stop
. $i
)
$i stop
done& echo $! > $pid_file) | tee -a $boot_log &
pid=$(cat $pid_file)

View File

@ -13,12 +13,7 @@ echo "---- booting $os_name $os_version----" >> $tmp_boot_log
(for i in /etc/init.d/S??*; do
[ ! -x "$i" ] && continue
[ -f /data/etc/no_$(basename $i) ] && continue
(
trap - INT QUIT TSTP
set start
. $i
)
$i start
done& echo $! > $pid_file) | tee -a $tmp_boot_log &
pid=$(cat $pid_file)