Supervisor should exit with the return code of the process it started, not 0 if there are no errors.

git-svn-id: http://munki.googlecode.com/svn/trunk@1142 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
Justin McWilliams
2011-04-25 20:23:43 +00:00
parent 48a809c405
commit 96d117741d
+1 -1
View File
@@ -188,7 +188,7 @@ def main(argv):
sp = Supervisor()
sp.setOptions(**options)
sp.execute(args)
return 0
return sp.GetReturnCode()
except Error, e:
logging.debug('%s %s', e.__class__.__name__, str(e))
return 1