Lines 14-25
start()
Link Here
|
14 |
{ |
14 |
{ |
15 |
ebegin "Starting local" |
15 |
ebegin "Starting local" |
16 |
|
16 |
|
17 |
local file has_errors=0 retval |
17 |
local file has_errors=0 redirect retval |
|
|
18 |
yesno $rc_verbose || redirect='2>&1 > /dev/null' |
18 |
eindent |
19 |
eindent |
19 |
for file in @SYSCONFDIR@/local.d/*.start; do |
20 |
for file in @SYSCONFDIR@/local.d/*.start; do |
20 |
if [ -x "${file}" ]; then |
21 |
if [ -x "${file}" ]; then |
21 |
vebegin "Executing \"${file}\"" |
22 |
vebegin "Executing \"${file}\"" |
22 |
"${file}" 2>&1 >/dev/null |
23 |
"${file}" $redirect |
23 |
retval=$? |
24 |
retval=$? |
24 |
if [ ${retval} -ne 0 ]; then |
25 |
if [ ${retval} -ne 0 ]; then |
25 |
has_errors=1 |
26 |
has_errors=1 |
Lines 52-63
stop()
Link Here
|
52 |
{ |
53 |
{ |
53 |
ebegin "Stopping local" |
54 |
ebegin "Stopping local" |
54 |
|
55 |
|
55 |
local file has_errors=0 retval |
56 |
local file has_errors=0 redirect retval |
|
|
57 |
yesno $rc_verbose || redirect='2>&1 > /dev/null' |
56 |
eindent |
58 |
eindent |
57 |
for file in @SYSCONFDIR@/local.d/*.stop; do |
59 |
for file in @SYSCONFDIR@/local.d/*.stop; do |
58 |
if [ -x "${file}" ]; then |
60 |
if [ -x "${file}" ]; then |
59 |
vebegin "Executing \"${file}\"" |
61 |
vebegin "Executing \"${file}\"" |
60 |
"${file}" 2>&1 >/dev/null |
62 |
"${file}" $redirect |
61 |
retval=$? |
63 |
retval=$? |
62 |
if [ ${retval} -ne 0 ]; then |
64 |
if [ ${retval} -ne 0 ]; then |
63 |
has_errors=1 |
65 |
has_errors=1 |