532 |
|
|
533 |
struct myprocess *p= get_process(name); |
struct myprocess *p= get_process(name); |
534 |
|
|
535 |
if(is(action, "start")) { |
if(is(action, "start") || is(action, "stop")) { |
536 |
|
|
537 |
LOCK(Run.mutex) |
check_process(name, action, TRUE); |
|
p->do_validate= TRUE; |
|
|
END_LOCK; |
|
|
control_process(p, "start", FORCE_CONTROL); |
|
538 |
|
|
539 |
} |
} |
540 |
|
|
|
if(is(action, "stop")) { |
|
|
|
|
|
LOCK(Run.mutex) |
|
|
p->do_validate= FALSE; |
|
|
END_LOCK; |
|
|
control_process(p, "stop", FORCE_CONTROL); |
|
|
|
|
|
} |
|
|
|
|
541 |
if(is(action, "status")) { |
if(is(action, "status")) { |
542 |
|
|
543 |
print_status(p, res); |
print_status(p, res); |