Univention Bugzilla – Attachment 6775 Details for
Bug 38048
UMC-Server: LockTimeout on startup if server already runs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
38048.patch (text/plain), 1.27 KB, created by
Florian Best
on 2015-03-20 13:57:42 CET
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2015-03-20 13:57:42 CET
Size:
1.27 KB
patch
obsolete
>diff --git a/ucs-4.0-1/management/univention-management-console/scripts/univention-management-console-server b/ucs-4.0-1/management/univention-management-console/scripts/univention-management-console-server >index a4bb8f1..62fc3c8 100755 >--- a/ucs-4.0-1/management/univention-management-console/scripts/univention-management-console-server >+++ b/ucs-4.0-1/management/univention-management-console/scripts/univention-management-console-server >@@ -38,6 +38,7 @@ import string > import socket > import signal > import time >+import lockfile > > from optparse import OptionParser > >@@ -208,10 +209,10 @@ if __name__ == "__main__": > try: > umc_daemon = UMC_Daemon() > umc_daemon.do_action() >- except DaemonRunnerStopFailureError, e: >- CORE.process( 'Failed to shutdown server gracefully (may be its already dead): %s' % str( e ) ) >- except DaemonRunnerStartFailureError, e: >- CORE.process( 'Failed to start server: %s' % str( e ) ) >+ except DaemonRunnerStopFailureError as exc: >+ CORE.process('Failed to shutdown server gracefully (may be its already dead): %s' % (exc,)) >+ except (lockfile.LockTimeout, DaemonRunnerStartFailureError) as exc: >+ CORE.process('Failed to start server (maybe it already runs): %s: %s' % (type(e).__name__, exc)) > except (SystemExit, KeyboardInterrupt): > raise > except:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 38048
: 6775