mirror of
https://github.com/munki/munki.git
synced 2026-01-05 22:20:00 -06:00
Make munkicommon.stopRequested() work in all run modes
This commit is contained in:
@@ -699,12 +699,12 @@ def main():
|
||||
if munkicommon.stopRequested():
|
||||
break
|
||||
time.sleep(0.5)
|
||||
# tell status app we're done sending status
|
||||
munkistatus.quit()
|
||||
else:
|
||||
msg = 'Another instance of %s is running. Exiting.' % myname
|
||||
munkicommon.log(msg)
|
||||
print >> sys.stderr, msg
|
||||
# tell status app we're done sending status
|
||||
munkistatus.quit()
|
||||
munkicommon.cleanUpTmpDir()
|
||||
exit(0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user