View | Details | Raw Unified | Return to bug 207811 | Differences between
and this patch

Collapse All | Expand All

(-)service (-18 / +6 lines)
Lines 68-87 Link Here
68
	files=`rcorder ${skip} ${local_rc} 2>/dev/null`
68
	files=`rcorder ${skip} ${local_rc} 2>/dev/null`
69
69
70
	for file in `reverse_list ${files}`; do
70
	for file in `reverse_list ${files}`; do
71
		if grep -q ^rcvar $file; then
71
		if run_rc_script ${file} enabled; then
72
			eval `grep ^name= $file`
72
			run_rc_script ${file} stop
73
			eval `grep ^rcvar $file`
74
			if [ -n "$rcvar" ]; then
75
				load_rc_config_var ${name} ${rcvar}
76
			fi
77
			checkyesno $rcvar 2>/dev/null && run_rc_script ${file} stop
78
		fi
73
		fi
79
	done
74
	done
80
	for file in $files; do
75
	for file in $files; do
81
		if grep -q ^rcvar $file; then
76
		if run_rc_script ${file} enabled; then
82
			eval `grep ^name= $file`
77
			run_rc_script ${file} start
83
			eval `grep ^rcvar $file`
84
			checkyesno $rcvar 2>/dev/null && run_rc_script ${file} start
85
		fi
78
		fi
86
	done
79
	done
87
80
Lines 100-112 Link Here
100
93
101
if [ -n "$ENABLED" ]; then
94
if [ -n "$ENABLED" ]; then
102
	for file in $files; do
95
	for file in $files; do
103
		if grep -q ^rcvar $file; then
96
		if run_rc_script ${file} enabled; then
104
			eval `grep ^name= $file`
97
			echo ${file}
105
			eval `grep ^rcvar $file`
106
			if [ -n "$rcvar" ]; then
107
				load_rc_config_var ${name} ${rcvar}
108
			fi
109
			checkyesno $rcvar 2>/dev/null && echo $file
110
		fi
98
		fi
111
	done
99
	done
112
	exit 0
100
	exit 0

Return to bug 207811