Project

General

Profile

Submit #2723 ยป 0001-localdaemons-should-care-for-scripts-dependencies-in.patch

fgudin, 09/03/2014 03:38 AM

View differences:

etc/rc.d/localdaemons
58 58
		done
59 59
		script_save_sep="$IFS"
60 60
		IFS="${script_name_sep}"
61
		for script in ${slist}; do
61
		sortedslist=`rcorder -s nostart /etc/rc.d/* ${slist} | grep -v "^/etc/rc.d/" | tr '\n' "$IFS" 2>/dev/null`;
62
		for script in ${sortedslist}; do
62 63
			if [ -x "${script}" ]; then
63 64
				(set -T
64 65
				trap 'exit 1' 2
......
97 98
		done
98 99
		script_save_sep="$IFS"
99 100
		IFS="${script_name_sep}"
100
		for script in `reverse_list ${slist}`; do
101
		sortedslist=`rcorder -s nostart /etc/rc.d/* ${slist} | grep -v "^/etc/rc.d/" | tr '\n' "$IFS" 2>/dev/null`;
102
		for script in `reverse_list ${sortedslist}`; do
101 103
			if [ -x "${script}" ]; then
102 104
				(set -T
103 105
				trap 'exit 1' 2
    (1-1/1)