236 |
|
|
237 |
|
|
238 |
/* |
/* |
239 |
* Reset the visited flag used when handling dependencies |
* Reset the visited flags used when handling dependencies |
240 |
*/ |
*/ |
241 |
void reset_depend() { |
void reset_depend() { |
242 |
|
|
362 |
|
|
363 |
if(d && p->stop && p->start && p->do_validate) { |
if(d && p->stop && p->start && p->do_validate) { |
364 |
|
|
365 |
if(is(action, "stop")) { |
if(is(action, "start")) { |
|
if(is_process_running(parent)) { |
|
|
do_stop(parent, toggle_validate_flag); |
|
|
} |
|
|
} else if(is(action, "start")) { |
|
366 |
if(! is_process_running(parent)) { |
if(! is_process_running(parent)) { |
367 |
do_start(parent, toggle_validate_flag); |
do_start(parent, toggle_validate_flag); |
368 |
} |
} |
369 |
} |
} |
370 |
|
|
371 |
do_dependant(parent, action, toggle_validate_flag); |
do_dependant(parent, action, toggle_validate_flag); |
372 |
|
|
373 |
|
if(is(action, "stop")) { |
374 |
|
if(is_process_running(parent)) |
375 |
|
do_stop(parent, toggle_validate_flag); |
376 |
|
} |
377 |
} |
} |
|
|
|
378 |
} |
} |
379 |
} |
} |
|
|
|
380 |
} |
} |
381 |
|
|
382 |
|
|