Handle meta-service exit 252 == exit 0 in parent.

This commit is contained in:
Daniel Nichter
2013-06-15 18:38:12 -07:00
parent 46c979d284
commit a01af7e331

View File

@@ -7117,7 +7117,11 @@ sub run_service {
exit_status => $cmd_exit_status,
};
if ( $cmd_exit_status == 253 ) {
if ( $cmd_exit_status == 252 && !$service->meta ) {
# Equivalent to 0 for meta-services that need to stop early
# but let the non-meta, i.e. real, parent service continue.
}
elsif ( $cmd_exit_status == 253 ) {
$logger->error($task->name . ' exit status not zero, '
. 'stopping ' . $service->name . ' service');
stop_service(