259 |
} |
} |
260 |
else if( is(action, "start") ) { |
else if( is(action, "start") ) { |
261 |
|
|
262 |
if ( P ) dstart_process(P); else |
if ( P ) check_process(P, "start"); else |
263 |
if ( mygroup ) start_group(mygroup); else start(); |
if ( mygroup ) control_group(mygroup, "start"); else control("start"); |
264 |
|
|
265 |
} |
} |
266 |
else if( is(action, "stop") ) { |
else if( is(action, "stop") ) { |
267 |
|
|
268 |
if ( P ) dstop_process(P); else |
if ( P ) check_process(P, "stop"); else |
269 |
if ( mygroup ) stop_group(mygroup); else stop(); |
if ( mygroup ) control_group(mygroup, "stop"); else control("stop"); |
270 |
|
|
271 |
} |
} |
272 |
else if( is(action, "restart") ) { |
else if( is(action, "restart") ) { |
282 |
|
|
283 |
} |
} |
284 |
|
|
285 |
dstop_process(P); |
check_process(P, "stop"); |
286 |
|
|
287 |
} else |
} else |
288 |
if ( mygroup ) stop_group(mygroup); else stop(); |
if ( mygroup ) control_group(mygroup, "stop"); else control("stop"); |
289 |
|
|
290 |
do_wait(); |
do_wait(); |
291 |
|
|
292 |
if ( P ) dstart_process(P); else |
if ( P ) check_process(P, "start"); else |
293 |
if ( mygroup ) start_group(mygroup); else start(); |
if ( mygroup ) control_group(mygroup, "start"); else control("start"); |
294 |
|
|
295 |
} |
} |
296 |
else if( is(action, "status") ) { |
else if( is(action, "status") ) { |