Commit 3be1f592 authored by Devaev Maxim's avatar Devaev Maxim

Added exception on process fail to fmod_system_services at first services loading

parent bef7913e
......@@ -132,6 +132,10 @@ class Service(service.Service) :
proc_args = "%s --list" % (config.value(SERVICE_NAME, "chkconfig_prog_path"))
(proc_stdout, proc_sterr, proc_returncode) = tools.execProcess(proc_args)
if proc_returncode != 0 :
raise tools.SubprocessFailure("Error while execute \"%s\"\nStdout: %s\nStderr: %s\nReturn code: %d" % (
proc_args, proc_stdout.strip(), proc_stderr.strip(), proc_returncode ))
system_service_count = 0
shared.Functions.addShared(SERVICE_NAME)
for system_service_record in proc_stdout.split("\n") :
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment