View | Details | Raw Unified | Return to bug 38048
Collapse All | Expand All

(-)a/ucs-4.0-1/management/univention-management-console/scripts/univention-management-console-server (-4 / +5 lines)
 Lines 38-43   import string Link Here 
38
import socket
38
import socket
39
import signal
39
import signal
40
import time
40
import time
41
import lockfile
41
42
42
from optparse import OptionParser
43
from optparse import OptionParser
43
44
 Lines 208-217   if __name__ == "__main__": Link Here 
208
	try:
209
	try:
209
		umc_daemon = UMC_Daemon()
210
		umc_daemon = UMC_Daemon()
210
		umc_daemon.do_action()
211
		umc_daemon.do_action()
211
	except DaemonRunnerStopFailureError, e:
212
	except DaemonRunnerStopFailureError as exc:
212
		CORE.process( 'Failed to shutdown server gracefully (may be its already dead): %s' % str( e ) )
213
		CORE.process('Failed to shutdown server gracefully (may be its already dead): %s' % (exc,))
213
	except DaemonRunnerStartFailureError, e:
214
	except (lockfile.LockTimeout, DaemonRunnerStartFailureError) as exc:
214
		CORE.process( 'Failed to start server: %s' % str( e ) )
215
		CORE.process('Failed to start server (maybe it already runs): %s: %s' % (type(e).__name__,  exc))
215
	except (SystemExit, KeyboardInterrupt):
216
	except (SystemExit, KeyboardInterrupt):
216
		raise
217
		raise
217
	except:
218
	except:

Return to bug 38048